A 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