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
Nginx-CVE-2013-4547 — Docker-based lab demonstrating Nginx CVE-2013-4547 URI parsing vulnerability with step-by-step exploitation for privilege bypass and code execution. | Kitploit
Tools/GitHubGitHub/cyberharsh/nginx-cve-2013-4547
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingMisconfigurationLearning & Education
GitHubcyberharsh/nginx-cve-2013-4547

Nginx-CVE-2013-4547

Docker-based lab demonstrating Nginx CVE-2013-4547 URI parsing vulnerability with step-by-step exploitation for privilege bypass and code execution.

View Repository
3135Aug 20, 2020Not yet reviewed

Related Tools

  • nuclei

    Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

  • zaproxy

    Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

  • openvas-scanner

    This repository contains the scanner component for Greenbone Community Edition.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    778
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    551
  • 4

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    452
  • 5

    ARTEX

    baarai/artex

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

    412
  • 6

    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.

    342

Explore all tools

Browse our collection of tools

View all tools →
Share

Nginx Filename Logic Vulnerability (CVE-2013-4547)

Vulnerability Description

Affected versions: Nginx 0.8.41 ~ 1.4.3 / 1.5.0 ~ 1.5.7

Reference links:

  • http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4547
  • https://blog.werner.wiki/file-resolution-vulnerability-nginx/
  • http://www.91ri.org/9064.html

Vulnerability Description

This vulnerability is not directly related to code execution; its main cause is the incorrect parsing of the request URI, resulting in an erroneous retrieval of the user-requested filename, leading to permission bypass and secondary effects such as code execution.

For example, when Nginx matches a request ending with .php, it forwards it to fastcgi for parsing. A common configuration is as follows:

location ~ \.php$ {
    include        fastcgi_params;

    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;
    fastcgi_param  DOCUMENT_ROOT /var/www/html;
}

Under normal circumstances (with pathinfo disabled), only files with the .php extension are sent to fastcgi for parsing.

In the presence of CVE-2013-4547, if we request 1.gif[0x20][0x00].php, this URI matches the regex \.php$ and enters this Location block. However, after entering, Nginx mistakenly treats the requested file as 1.gif[0x20] and sets it as the value of SCRIPT_FILENAME, sending it to fastcgi.

Fastcgi then parses based on the value of SCRIPT_FILENAME, leading to a parsing vulnerability.

Therefore, we only need to upload a file ending with a space to cause PHP to parse it.

Another example: many websites restrict access to the admin panel by IP:

location /admin/ {
    allow 127.0.0.1;
    deny all;
}

We can request a URI like /test[0x20]/../admin/index.php. This URI does not match the /admin/ location, bypassing the IP restriction; however, the final requested file is /test[0x20]/../admin/index.php, which resolves to /admin/index.php, successfully accessing the admin panel. (This requires a directory named test : this is a characteristic of Linux systems. If a directory does not exist, even a parent directory jump will cause a "file not found" error. Windows does not have this limitation.)

Vulnerability Test

Start the vulnerable environment:

docker-compose build
docker-compose up -d

After the environment starts, visit http://your-ip:8080/ to see an upload page.

This environment uses a blacklist validation, so we cannot upload files with a .php extension. We need to exploit CVE-2013-4547. Upload a file named 1.gif , note the trailing space:

Visit http://your-ip:8080/uploadfiles/1.gif[0x20][0x00].php to find that PHP has been parsed:

Note that [0x20] is a space, and [0x00] is \0. Neither character needs to be URL-encoded.

Download Tool