Webhook Receiver
The module does not check the secret security token in a secure way. Anyone without logging in could guess the token by measuring how long the website takes to respond. This could allow them to view hidden data or change information on the site.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youAny site using this module.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.
Tell your developerUpdate Webhook Receiver to 2.0.1.
For developers: what the fix changed
The fix replaces a standard string comparison with `hash_equals()` in the `before` method of `src/Plugin/WebhookReceiverPlugin/CheckToken.php` to ensure the webhook token is compared in constant time.
Also in this release The release also prevents plugin enumeration by returning a generic 403 response for unknown plugins, fixes a static declaration visibility order, and updates documentation and module metadata.
README.md+13 −4src/Plugin/WebhookReceiverPlugin/CheckToken.php+3 −1 fixsrc/Processor/Processor.php+16 −5src/Utilities/Singleton.php+1 −1src/WebhookReceiverSecurity/WebhookReceiverSecurity.php+1 −1webhook-receiver-3531653-1.patch+13 −0webhook_receiver.info.yml+2 −2