Description
xianyu-auto-reply-fix through 2.0.7 contains a missing authorization vulnerability in the POST /send-message endpoint that allows unauthenticated attackers to send messages from other users' accounts using publicly known default API secrets. Attackers can supply the hard-coded api_key and another user's cookie_id, plus chosen chat_id, to_user_id and message values, to send arbitrary Xianyu messages to buyers from that merchant account.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GuDong2003 | xianyu-auto-reply-fix | ≤ 2.0.7 | — |
References
- GitHub Issue #116 issue-tracking
- https://github.com/GuDong2003/xianyu-auto-reply-fix product
- https://github.com/GuDong2003/xianyu-auto-reply-fix/blob/v2.0.7/reply_server.py#L2347-L2475 technical-description
- https://github.com/GuDong2003/xianyu-auto-reply-fix/blob/v2.0.7/db_manager.py#L1011 technical-description
- https://github.com/GuDong2003/xianyu-auto-reply-fix/commit/999cfe61c401322d9893eb81ad1a76beabba6cfb patch
- VulnCheck Advisory: xianyu-auto-reply-fix through 2.0.7 Unauthenticated Message Sending via /send-message third-party-advisory