
TomcatScanner는 Apache Tomcat 서버에서 CVE-2025-24813 취약점을 탐지하고 악용하도록 설계된 포괄적인 보안 도구입니다.
TomcatScanner는 Apache Tomcat 서버에서 CVE-2025-24813 취약점을 탐지하고 익스플로잇하기 위해 설계된 종합 보안 도구입니다. 이 취약점은 'file.Name' 매개변수의 경로 동등성(path equivalence) 문제로 인해 원격 코드 실행(RCE)으로 이어질 수 있습니다.

git clone https://github.com/yourusername/tomcat-scanner.git
cd tomcat-scanner
pip install -r requirements.txt
requirements.txt 파일에는 다음이 포함되어야 합니다:
requests>=2.28.0
urllib3>=1.26.0
wordlist.txt라는 파일을 만들고 취약점을 테스트할 경로를 입력하거나, 제공된 샘플 워드리스트를 사용하세요.
단일 대상 스캔:
python tomcat_scanner.py -u http://example.com:8080
파일에서 여러 대상 스캔:
python tomcat_scanner.py -l targets.txt
usage: tomcat_scanner.py [-h] [-u URL] [-l LIST] [-w WORDLIST] [-t THREADS]
[-o OUTPUT] [--timeout TIMEOUT] [--ssl-verify]
[-v] [--exploit] [--command COMMAND]
Scanner for CVE-2025-24813 vulnerability in Apache Tomcat
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Single target URL (e.g., http://example.com:8080)
-l LIST, --list LIST File containing a list of target URLs
-w WORDLIST, --wordlist WORDLIST
Wordlist file containing paths to test (default: wordlist.txt)
-t THREADS, --threads THREADS
Number of parallel threads (default: 10)
-o OUTPUT, --output OUTPUT
Output file for results
--timeout TIMEOUT Request timeout in seconds (default: 5)
--ssl-verify Verify SSL certificates
-v, --verbose Enable verbose mode with HTTP response codes
--exploit Attempt to exploit vulnerable targets
--command COMMAND Test command for exploit mode (default: echo CVE-2025-24813)
취약점을 탐지할 뿐만 아니라 익스플로잇하려면:
python tomcat_scanner.py -u http://vulnerable-server.com:8080 --exploit
익스플로잇 중 실행할 사용자 정의 명령을 지정하려면:
python tomcat_scanner.py -u http://vulnerable-server.com:8080 --exploit --command "whoami"
python tomcat_scanner.py -u http://example.com:8080 -w my_wordlist.txt
python tomcat_scanner.py -u http://example.com:8080 -t 20 -v
python tomcat_scanner.py -l target_list.txt -o vulnerable_targets.txt
python tomcat_scanner.py -u http://example.com:8080 --exploit --command "id" -v --timeout 10
TomcatScanner는 테스트할 경로로 구성된 워드리스트가 필요합니다. 워드리스트에는 잠재적으로 취약한 경로를 한 줄에 하나씩 포함해야 합니다.
워드리스트 항목 예시:
/path/uploads/file.name
/webapps/manager/file.name
/tomcat/manager/uploads/file.name
/uploads/../sessions/absholi7ly.session
이 도구는 중요한 정보를 쉽게 식별할 수 있도록 색상으로 구분된 출력을 제공합니다:
각 스캔이 끝나면 도구는 다음 항목이 포함된 요약을 표시합니다:
CVE-2025-24813은 Apache Tomcat에 영향을 미치며, 애플리케이션이 'file.Name' 매개변수를 처리하는 방식의 경로 동등성 취약점과 관련이 있습니다. 이 취약점으로 인해 공격자는 다음을 수행할 수 있습니다:
이 취약점은 일반적으로 PUT 요청이 "file.name"을 포함한 경로에 쓰기를 허용하거나, 부분 PUT(partial PUT) 작업을 통해 경로 순회가 가능할 때 나타납니다.
본 도구는 교육 및 윤리적 테스트 목적으로만 제공됩니다.
사전 상호 동의 없이 대상을 공격하기 위해 TomcatScanner를 사용하는 것은 불법입니다. 모든 관련 지방, 주 및 연방 법률을 준수할 책임은 최종 사용자에게 있습니다. 개발자는 어떠한 책임도 지지 않으며, 이 프로그램으로 인해 발생하는 오용이나 피해에 대해 책임을 지지 않습니다.
기여는 언제나 환영합니다! 자유롭게 Pull Request를 제출해 주세요.
기여 절차:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다 - 자세한 내용은 LICENSE 파일을 참조하세요.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files...