
# CVE-2025-5054 (Apport रेस कंडीशन) के लिए Python-आधारित भेद्यता डिटेक्टर Ubuntu पर CVE-2025-5054 (Apport रेस कंडीशन) के लिए Python-आधारित भेद्यता डिटेक्टर। Apport संस्करण, कोर डंप कॉन्फ़िगरेशन और SUID सेटिंग्स की जाँच करता है, फिर कार्रवाई योग्य शमन अनुशंसाएँ प्रदान करता है।
यह एक Python टूल है जो यह जाँचने के लिए है कि आपका Ubuntu सिस्टम CVE-2025-5054 के प्रति भेद्य है या नहीं, जो Apport में एक रेस कंडीशन है और स्थानीय जानकारी के रिसाव की अनुमति देता है। यह टूल आपके सिस्टम की स्थिति निर्धारित करने के लिए कई जाँचें करता है और यदि आप प्रभावित हैं तो अनुशंसाएँ प्रदान करता है।
रिपॉजिटरी क्लोन करें:
git clone https://github.com/daryllundy/cve-2025-5054
cd cve-2025-5054
का उपयोग करके एक वर्चुअल वातावरण बनाएँ और सक्रिय करें:
uv venv
source .venv/bin/activate
सर्वोत्तम परिणामों के लिए, सभी जाँचें पूरी करने हेतु रूट (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 द्वारा विकसित