Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Orm Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-orm-injection)
---
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).