
cve-2020-10977 読み取りと実行
get_secret.py - メインスクリプト。最初に thewhiteh4t のコードを使用して CVE-2020-10977 を悪用し、指定されたリポジトリから secret_key_base を取得します。次に cookie_maker.sh を起動して、ペイロード入りクッキーを生成します。
Usege: python get_secret.py http://gitlab.vh foo gfhjkm123
cookie_maker.sh - Docker を起動し、悪意のあるクッキーを生成します。単体でも使用できます。
Usage: cookie_maker.sh <secret_key_base> "echo /etc/passwd > /tmp/owned"
thewhiteh4t のリポジトリに基づく: https://github.com/thewhiteh4t/cve-2020-10977
これにはバグが含まれる可能性があり含まれているはずです。get_secret.py が正しく終了したにもかかわらずクッキーが出力されない場合は、もう一度実行してください。