Descrizione
Baileys is a cocket-based TS/JavaScript API for WhatsApp Web. In versions prior to both 6.7.22 and 7.0.0-rc12, any Baileys session can be sent a malicious payload via the placeholderResendMessage and trigger a fake messages.upsert event with a fake message key and payload. This allows anyone to spoof messages. The same exploit also allows an attacker to corrupt the app state sync system by sending fake key shares, and also allows for history sync spoofing which also serves the same problem, injecting fake previous context or "on-demand" sync. This issue has been fixed in versions 6.7.22 and 7.0.0-rc12.
Prodotti coinvolti
| Fornitore | Prodotto | Versione | Piattaforma |
| whiskeysockets |
@whiskeysockets/baileys |
< 6.7.22 |
– |
| whiskeysockets |
@whiskeysockets/baileys |
>= 7.0.0-rc.1, < 7.0.0-rc12 |
– |
| whiskeysockets |
baileys |
< 6.7.22 |
– |
| whiskeysockets |
baileys |
>= 7.0.0-rc.1, < 7.0.0-rc12 |
– |
Tipo di vulnerabilità
CWE-290
Aggiramento dell’autenticazione tramite spoofing
Lo schema di autenticazione è implementato in modo da poter essere ingannato da un attaccante che si spaccia per un altro soggetto (per esempio falsificando un indirizzo o un’intestazione).
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione, Ottenere privilegi o assumere un’altra identità |
Tutte le 846 CVE di tipo CWE-290, con andamento e prevenzione