
Python 기반 취약점 탐지 도구로, Ubuntu에서 CVE-2025-5054(Apport 경쟁 조건)를 탐지합니다. Apport 버전, 코어 덤프 구성, SUID 설정을 확인한 후 실행 가능한 완화 권장 사항을 제공합니다.
Ubuntu 시스템이 CVE-2025-5054에 취약한지 확인하는 Python 도구입니다. 이 취약점은 Apport의 경쟁 조건(race condition)으로 인해 로컬 정보 공개를 허용합니다. 이 도구는 시스템 상태를 확인하기 위해 일련의 검사를 수행하며, 영향을 받는 경우 권장 조치를 제공합니다.
저장소를 클론합니다:
git clone https://github.com/daryllundy/cve-2025-5054
cd cve-2025-5054
uv를 사용하여 가상 환경을 생성하고 활성화합니다:
uv venv
source .venv/bin/activate
최상의 결과를 얻으려면 root(sudo)로 실행하여 모든 검사가 완료되도록 하세요.
uv run cve_2025_5054_detector.py
샘플 출력:
============================================================
CVE-2025-5054 Vulnerability Detection Tool
============================================================
[*] Checking operating system...
[*] Checking if Apport is installed...
[*] Checking Apport version...
[*] Checking core dump configuration...
[*] Checking suid_dumpable setting...
[*] Checking for unix_chkpwd...
============================================================
DETECTION RESULTS
============================================================
[OS Check] INFO: Ubuntu 22.04 detected
[Apport Check] INFO: Apport version 2.32.0 installed
[Version Check] VULNERABLE: Version 2.32.0 is vulnerable
[Core Pattern] INFO: Apport is configured as core dump handler
[Mitigation] WARNING: suid_dumpable=1 (default, vulnerable)
[Attack Vector] INFO: unix_chkpwd found at /usr/sbin/unix_chkpwd (not SUID/SGID)
============================================================
SUMMARY
============================================================
[!] YOUR SYSTEM APPEARS TO BE VULNERABLE TO CVE-2025-5054
Recommended actions:
1. Update Apport to the latest version:
sudo apt update && sudo apt upgrade apport
2. As a temporary mitigation, disable SUID core dumps:
sudo sysctl fs.suid_dumpable=0
echo 'fs.suid_dumpable=0' | sudo tee -a /etc/sysctl.conf
3. Consider disabling Apport temporarily if updates are not available:
sudo systemctl stop apport.service
sudo systemctl disable apport.service
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다.
Daryl Lundy 개발