
CHAOS RAT WebパネルのパスRCE PoC
https://github.com/tiagorlampert/CHAOS
このエクスプロイトは、エージェントのコールバックを偽装してXSS(CVE-2024-31839)を発生させ、そのXSSを利用して管理Webパネルのコマンドインジェクション脆弱性(CVE-2024-30850)を悪用します。これにより、RATサーバーが侵害され、RATパネルのオペレーターがリックロールされます。
完全な解説: https://blog.chebuya.com/posts/remote-code-execution-on-chaos-rat-via-spoofed-agents/
python3 exploit.py exploit -h
usage: exploit.py exploit [-h] [-f FILE] [-t TARGET] [-c COMMAND] [-v VIDEO_NAME] [-j JWT] -l LOCAL_IP [-p LOCAL_PORT] [-H HOSTNAME] [-u USERNAME] [-o OS]
[-m MAC] [-i IP]
options:
-h, --help show this help message and exit
-f FILE, --file FILE The path to the CHAOS client
-t TARGET, --target TARGET
The url of the CHAOS server (127.0.0.1:8080)
-c COMMAND, --command COMMAND
The command to use
-v VIDEO_NAME, --video-name VIDEO_NAME
The video name to use
-j JWT, --jwt JWT The JWT token to use
-l LOCAL_IP, --local-ip LOCAL_IP
The local IP to use for serving bash script and mp4
-p LOCAL_PORT, --local-port LOCAL_PORT
The local port to use for serving bash script and mp4
-H HOSTNAME, --hostname HOSTNAME
The hostname to use for the spoofed client
-u USERNAME, --username USERNAME
The username to use for the spoofed client
-o OS, --os OS The OS to use for the spoofed client
-m MAC, --mac MAC The MAC address to use for the spoofed client
-i IP, --ip IP The IP address to use for the spoofed client
