
CosmicSting (CVE-2024-34102) POC / पैच सत्यापनकर्ता
एक Cosmicsting POC, एक bash स्क्रिप्ट के साथ जो हमारे सभी होस्टेड साइटों की जाँच कर पैच की पुष्टि करता है।
यह रिपॉजिटरी स्टोर मालिकों/होस्ट्स को स्टोर पर पैच लागू होने की पुष्टि करने की अनुमति देने के लिए प्रदान की गई है। check.bash में डोमेन को SITES सूची में जोड़ें।
https://www.sdj.pw/posts/magento2-cosmic-sting-check/
ऑनलाइन वैलिडेटर https://cosmicsting.samdjames.uk/
# Create a python virtual environment for the project
python -m venv venv
# Activate virtual environment (pick appropriate below)
source venv/bin/activate # MacOS / Unix
venv\Scripts\activate # Windows
# Install Requirements
pip install -r requirements.txt
# Run the POC against a single store
./poc.py -u https://samdjames.uk
# To run the POC against multiple stores, first create txt file containing the list of sites seperated by a new line
# for example `sites/example.txt`. And pass it as the first positional argument of the ./z_validate script.
./z_validate sites/example.txt
# A very basic check monitoring stores for compromise
# Dumps all script src's to a file, and compares against the previous run.
./z_compromise_check sites/example.txt