Individual skill
exploiting-orm-injection
Exploiting ORM injection (ORM Leak) where applications pass attacker-controlled keys/operators directly into ORM query builders (Django, Prisma, Beego, Ransack, Entity Framework/OData), letting attackers smuggle relational filters and comparison operators to leak hidden columns (passwords, reset tokens, TOTP secrets) via boolean, error, or timing oracles, and to bypass field deny-lists. Activates when request data is spread into filter/where clauses.
internal/tools/skills/data/web-application-security/exploiting-orm-injection/SKILL.md
Source commit d42f381ad34843e71a42658e5c57290c713e85af
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,309
- Repository last updated
- Nov 5, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- cybersecurity Repository topic
- security Repository topic
- bug-bounty Repository topic
- automation Repository topic
- autonomous-pentesting Repository topic
- ai-agent Repository topic
- ai-security Repository topic
- ethical-hacking Repository topic
- golang Repository topic
- penetration-testing Repository topic
- penetration-testing Declared skill tag
- orm-injection Declared skill tag
- orm-leak Declared skill tag
- data-exfiltration Declared skill tag
- owasp Declared skill tag
- web-security Declared skill tag
- data Derived category
- security Derived category
- testing Derived category
- engineering Derived category
- security-application Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Read excerpt
# Exploiting ORM Injection (ORM Leak)
## When to Use
- During authorized tests where an endpoint spreads request JSON/query params into an ORM filter
- When you see Django `filter(**request.data)`, Prisma `findMany(req.body)`, Beego `QuerySeter.Filter()`, Ransack `Model.ransack(params[:q])`, or OData `$filter`
- When search/list endpoints accept structured filters, bracket syntax (`field[op]=v`), or `field__operator` keys
- When auth flows compare secrets (reset tokens, API keys, magic links) with attacker JSON that may carry operator objects
- When you need to leak columns not meant to be exposed, by pivoting through model relations
## Critical: Variants Most Often Missed
The miss is treating these as "just a search filter." Attacker-controlled keys let you traverse relations and inject operators to build a leak oracle. Test per framework: