zeptoclaw
Affected
- introduced
0, fixed0.7.6(semver)
Fixed versions
0.7.6
Fix
- Fixed version
0.7.6cargo update -p zeptoclaw --precise 0.7.6
Advisory
Also known as: CVE-2026-32231
ZeptoClaw: Generic webhook channel trusts caller-supplied identity fields; allowlist is checked against untrusted payload data
Summary
The generic webhook channel trusts caller-supplied identity fields (sender, chat_id) from the request body and applies authorization checks to those untrusted values. Because authentication is optional and defaults to disabled (auth_token: None), an attacker who can reach POST /webhook can spoof an allowlisted sender and choose arbitrary chat_id values, enabling high-risk message spoofing and potential IDOR-style session/chat routing abuse.
Details
Relevant code paths:
src/channels/webhook.rs:121 sets runtime default auth_token: None.src/config/types.rs:910 also defaults webhook config auth_token to None.src/channels/webhook.rs:224 (validate_auth) explicitly allows requests when no token is configured.src/channels/webhook.rs:128 defines WebhookPayload with identity fields fully controlled by caller input:sender: Stringchat_id: Stringsrc/channels/webhook.rs:421 performs allowlist authorization using payload.sender.src/channels/webhook.rs:433 and src/channels/webhook.rs:434 create InboundMessage using untrusted payload.sender and payload.chat_id.Why this is vulnerable:
chat_id is also attacker-controlled, so routing/session association can be steered to arbitrary chats/conversations.PoC
enabled = truebind_address = "0.0.0.0" (or any reachable interface)port = 9876path = "/webhook"auth_token = null (or omitted)allow_from = ["trusted-user-1"]deny_by_default = truesender and chat_id, without any Authorization header:curl -i -X POST "http://127.0.0.1:9876/webhook" \
-H "Content-Type: application/json" \
--data '{
"message":"FORGED: run privileged workflow",
"sender":"trusted-user-1",
"chat_id":"victim-chat-42"
}'
HTTP/1.1 200 OK.trusted-user-1.chat_id (victim-chat-42).Impact
chat_idchat_id.High Basis: The source's own band: HIGH
0, fixed 0.7.6 (semver)0.7.6
0.7.6cargo update -p zeptoclaw --precise 0.7.6Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0