Description
WuzAPI through 1.1.0 contains a cross-tenant information disclosure vulnerability in the GetHistory handler that allows authenticated users to view other tenants' chat metadata. Attackers with message history enabled can request GET /chat/history with chat_jid=index to list every user's internal ID, stored chat JIDs, and last-message times.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| asternic | wuzapi | ≤ 1.1.0 | — |
References
- https://github.com/asternic/wuzapi/issues/407 issue-tracking
- https://github.com/asternic/wuzapi/commit/f5332fa21b7c8a742f9ee565328ea776ad0c8040 patch
- https://github.com/asternic/wuzapi/blob/v1.1.0/handlers.go#L7269-L7296 technical-description
- https://github.com/asternic/wuzapi/blob/v1.1.0/routes.go#L139 technical-description
- https://hackmd.io/@hieund/wuzapi-chat-history-index-cross-tenant-idor third-party-advisory
- VulnCheck Advisory: WuzAPI through 1.1.0 Cross-Tenant Information Disclosure via /chat/history third-party-advisory