{"uuid": "33916bc3-95dc-4c5f-a0f4-08e3e3b66b5a", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2017-7529", "type": "published-proof-of-concept", "source": "https://t.me/hacking_Attack/95785", "content": "Black Hat Ethical Hacking\nOffensive Security Tool: Nginxpwner\n\nOffensive Security Tool: NginxpwnerPost Views: 139 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2023/03/Patreon.png Subscribe to Patreon to watch this episode.\nReading Time: 2 Minutes DescriptionNginxpwner is written by stark0de and its an automated tool written in Python that can be used to scan a web server running the nginx web server software for misconfigurations and vulnerabilities. The tool uses a variety of techniques to identify misconfigurations and vulnerabilities, such as looking for files with default or weak permissions, searching for backup files, and checking for common server configuration mistakes. Once the tool identifies a vulnerability, it attempts to exploit it by running a variety of pre-configured attacks against the server, such as using a local file inclusion (LFI) vulnerability to retrieve sensitive files or attempting to execute arbitrary code on the server.\n\nIt can also be used to perform reconnaissance on a target server, such as identifying the operating system and web server software in use. It is important to note that while the tool can be useful for identifying potential security issues on a web server, it should only be used on systems that you have explicit permission to test.\n\nhttps://www.blackhatethicalhacking.com/wp-content/uploads/2023/03/68747470733a2f2f692e706f7374696d672e63632f766d334c57466a342f6e67696e7870776e65722e706e67-1024x350.png \nSee Also: So you want to be a hacker? Offensive Security Courses Installcd /optgit clone https://github.com/stark0de/nginxpwnercd nginxpwnerchmod +x install.sh./install.shTrending: Offensive Security Tool: Bypass Url Parser\nTrending: Digital Forensics Tool: Email Analyzer Install using Dockergit clone https://github.com/stark0de/nginxpwnercd nginxpwnersudo docker build -t nginxpwner:latest .Run the imagesudo docker run -it nginxpwner:latest /bin/bashUsageTarget tab in Burp, select host, right click, copy all URLs in this host, copy to a file\n\ncat urllist | unfurl paths | cut -d\"/\" -f2-3 | sort -u &gt; /tmp/pathlist \n\nOr get the list of paths you already discovered in the application in some other way. Note: the paths should not start with /\n\nFinally:\n\npython3 nginxpwner.py https://example.com /tmp/pathlistSee Also: Write up: How Misconfigurations in Linux can leave you vulnerable to Attackers NotesIt actually checks for:\n\n-Gets Ngnix version and gets its possible exploits using searchsploit and tells if it is outdated\n\n-Throws a wordlist specific to Nginx via gobuster\n\n-Checks if it is vulnerable to CRLF via a common misconfiguration of using $uri in redirects\n\n-Checks for CRLF in all of the paths provided\n\n-Checks if the PURGE HTTP method is available from the outside\n\n-Checks for variable leakage misconfiguration\n\n-Checks for path traversal vulnerabilities via merge_slashes set to off\n\n-Tests for differences in the length of responses when using hop-by-hop headers (ex: X-Forwarded-Host)\n\n-Uses Kyubi to test for path traversal vulnerabilities via misconfigured alias\n\n-Tests for 401/403 bypass using X-Accel-Redirect\n\n-Shows the payload to check for Raw backend reading response misconfiguration\n\n-Checks if the site uses PHP and suggests some nginx-specific tests for PHP sites\n\n-Tests for the common integer overflow vulnerability in Nginx\u2019s range filter module (CVE-2017-7529)\n\nThe tool uses the Server header in the response to do some of the tests. There are other CMS and so which are built on Nginx like Centminmod, OpenResty, Pantheon or Tengine for example which don\u2019t return that header. In that case please use nginx-pwner-no-server-header.py w[...]", "creation_timestamp": "2026-09-04T19:00:05.125701Z"}