Skip to content
Back to skills

Orm Injection

ASecurity

ORM / query-builder injection — unsafe raw-query escape hatches and operator/field injection in ORMs (Hibernate/JPA HQL/JPQL, Sequelize, TypeORM, Django ORM, SQLAlchemy, Eloquent, ActiveRecord, Prisma). HQL cross-entity leakage, raw() SQLi, and operator/key injection. Tier 1. Payloads: payloads/sqli.md + nosql.md. Use when an ORM builds queries from user input.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitygosqldjangobackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill orm-injection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orm Injection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orm Injection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-orm-injection/badge)](https://www.skillsdirectory.com/skills/anandjogawade-orm-injection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orm-injection
description: "ORM / query-builder injection — unsafe raw-query escape hatches and operator/field injection in ORMs (Hibernate/JPA HQL/JPQL, Sequelize, TypeORM, Django ORM, SQLAlchemy, Eloquent, ActiveRecord, Prisma). HQL cross-entity leakage, raw() SQLi, and operator/key injection. Tier 1. Payloads: payloads/sqli.md + nosql.md. Use when an ORM builds queries from user input."
---

# ORM / Query-Builder Injection

ORMs are safe until an app uses a raw-query escape hatch or passes user input as operators/field names. Then classic SQLi (or logic injection) returns.

## Trigger phrases
`orm injection, hql injection, jpql, sequelize injection, django orm, sqlalchemy, raw query, prisma injection`

## Method
- **Raw-query escape hatches:** `.raw()`/`.query()`/`extra()`/`literal()`/string-concatenated filters → full SQLi (→ `web-sqli`, `${CLAUDE_PLUGIN_ROOT}/payloads/sqli.md`). Find them in source (white-box) or infer from errors.
- **HQL/JPQL (Hibernate/JPA):** cross-entity leakage — inject to traverse to other entities/columns the query didn't intend; HQL has no stored-proc/UNION-to-DB-table parity but allows object-graph disclosure; test `' or '1'='1`, entity-name/field injection.
- **Operator/field injection:** ORMs that accept client-controlled filter keys/operators (Sequelize `[Op.*]`, Mongoose operators, Prisma filters) → logic bypass / NoSQL-style injection (→ `nosql-injection`), ordering/field injection (`order by` via sort param), mass-assignment overlap (→ `mass-assignment`).
- **Blind:** boolean/time/OAST as per the underlying DB.

## Escalation
Raw-query path → full SQLi → data/RCE (per DBMS, → `web-sqli`); operator injection → auth/filter bypass and data exposure.

## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.

## Evidence
The injected input, the leaked/altered data or logic bypass, and the ORM sink (raw query / operator key).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.