CVE-2024-45607
published 2024-09-12CVE-2024-45607: whatsapp-api-js is a TypeScript server agnostic Whatsapp's Official API framework. It's possible to check the payload validation using the…
PriorityP340medium5.3CVSS 3.1
AVNACLPRNUINSUCNILAN
EPSS
14.12%
96.1th percentile
whatsapp-api-js is a TypeScript server agnostic Whatsapp's Official API framework. It's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid. Incorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted. This vulnerability is fixed in 4.0.3.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| secreto31126 | whatsapp-api-js | — | — |
| secreto31126 | whatsapp-api-js | >= 4.0.0 < 4.0.3 | 4.0.3 |
| secreto31126 | whatsapp-api-js | >= 4.0.0 < 4.0.3 | 4.0.3 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
whatsapp-api-js fails to validate message's signature
osv·2024-09-12
CVE-2024-45607 [MEDIUM] whatsapp-api-js fails to validate message's signature
whatsapp-api-js fails to validate message's signature
### Impact
Incorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted.
### Patches
Patched in version 4.0.3.
### Workarounds
It's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid.
```ts
function doPost(payload, header_signature) {
if (whatsapp.verifyRequestSignature(payload.toString(), header_signature) {
throw 403;
}
// Now the payload is correctly verified
whatsapp.post(payload);
}
```
### References
https://github.com/Secreto31126/whatsapp-api-js/pull/371
GHSA
whatsapp-api-js fails to validate message's signature
ghsa·2024-09-12
CVE-2024-45607 [MEDIUM] CWE-347 whatsapp-api-js fails to validate message's signature
whatsapp-api-js fails to validate message's signature
### Impact
Incorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted.
### Patches
Patched in version 4.0.3.
### Workarounds
It's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid.
```ts
function doPost(payload, header_signature) {
if (whatsapp.verifyRequestSignature(payload.toString(), header_signature) {
throw 403;
}
// Now the payload is correctly verified
whatsapp.post(payload);
}
```
### References
https://github.com/Secreto31126/whatsapp-api-js/pull/371
Suricata
ET WEB_SPECIFIC_APPS YETI Platform Server-Side Template Injection (CVE-2024-45607)
suricata·2025-02-03·CVSS 5.8
CVE-2024-45607 [MEDIUM] ET WEB_SPECIFIC_APPS YETI Platform Server-Side Template Injection (CVE-2024-45607)
ET WEB_SPECIFIC_APPS YETI Platform Server-Side Template Injection (CVE-2024-45607)
Rule: alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS YETI Platform Server-Side Template Injection (CVE-2024-45607)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v2/templates/"; fast_pattern; http.cookie; content:"yeti_session|3d|eyJ"; http.request_body; content:"|22|template|22 3a|"; content:"|7b 25|"; distance:0; pcre:"/^[^\x2e]*?(?:\x2e\x5f{1,2}\w+)+[\x28\x5b]/R"; reference:url,github.com/RhinoSecurityLabs/CVEs/tree/master/CVE-2024-46507; reference:cve,2024-45607; classtype:web-application-attack; sid:2059842; rev:1; metadata:attack_target Server, tls_state TLSDecrypt, created_at 2025_02_03, cve CVE_2024_45607, deployment Perimeter, deployment
No public exploits indexed.
No writeups or analysis indexed.
2024-09-12
Published