
CosmicSting (CVE-2024-34102) POC / Patch Validator
一个 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