PT-2024-31706 · Unknown · Whatsapp-Api-Js

Secreto31126

·

Published

2024-09-12

·

Updated

2024-09-19

·

CVE-2024-45607

CVSS v3.1

5.8

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions: whatsapp-api-js versions prior to 4.0.3
Description: The issue concerns Incorrect Access Control in the whatsapp-api-js framework, impacting anyone using the post or verifyRequestSignature methods to handle messages. It is possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid.
Recommendations: For versions prior to 4.0.3, update to version 4.0.3 to resolve the issue. As a temporary workaround, consider using a custom function like doPost, which checks the payload validation using whatsapp.verifyRequestSignature and throws an error if the signature is valid, before proceeding with the post method.

Exploit

Fix

Improper Verification of Cryptographic Signature

Weakness Enumeration

Related Identifiers

CVE-2024-45607
GHSA-MWHF-VHR5-7J23

Affected Products

Whatsapp-Api-Js