
Nginxpwnerは、一般的なNginxの設定ミスや脆弱性を探すためのシンプルなツールです。

Nginxpwnerは、一般的なNginxの設定ミスや脆弱性を探すためのシンプルなツールです。
cd /opt
git clone https://github.com/stark0de/nginxpwner
cd nginxpwner
chmod +x install.sh
./install.sh
git clone https://github.com/stark0de/nginxpwner
cd nginxpwner
sudo docker build -t nginxpwner:latest .
Run the image
sudo docker run -it nginxpwner:latest /bin/bash
Target tab in Burp, select host, right click, copy all URLs in this host, copy to a file
cat urllist | unfurl paths | cut -d"/" -f2-3 | sort -u > /tmp/pathlist
Or get the list of paths you already discovered in the application in some other way. Note: the paths should not start with /
Finally:
python3 nginxpwner.py https://example.com /tmp/pathlist
実際にチェックする内容は以下の通りです。
このツールは、一部のテストでレスポンスのServerヘッダーを使用します。Centminmod、OpenResty、Pantheon、Tengineなど、Nginx上に構築されたCMSなどで、そのヘッダーを返さないものもあります。その場合は、同じパラメータでnginx-pwner-no-server-header.pyを使用してください。
また、エクスプロイト検索を正しく実行するには、Kaliで定期的にsearchsploit -uを実行してください。
このツールは、Webキャッシュポイズニング/デセプション脆弱性やリクエストスマグリングはチェックしません。それらの脆弱性は専用のツールでテストしてください。Nginxpwnerは主に、開発者が気づかずにnginx.confに導入してしまった設定ミスに焦点を当てています。
Credit to shibli2700 for his awesome tool Kyubi https://github.com/shibli2700/Kyubi and to all the contributors of gobuster. Credits also to Detectify (which actually discovered many of this misconfigurations in NGINX)