Intel

AIKIDO-2024-10501

github.com/mailgun/mailgun-go/v4 is vulnerable to Incorrect Use of Privileged APIs

Incorrect Use of Privileged APIs Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 2, 2024

18

Low Risk

This Affects:

gogithub.com/mailgun/mailgun-go/v4
4.0.0 - 4.18.5
Fixed in 4.19.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package incorrectly use the APIKey as the signature key in the VerifyWebhookSignature method instead of the intended WebhookSigningKey. This misconfiguration weakens the security of webhook verification, potentially allowing attackers to bypass signature checks and send unauthorized requests.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/mailgun/mailgun-go/v4 is vulnerable to Incorrect Use of Privileged APIs in versions 4.0.0 - 4.18.5.

How to fix this

Upgrade the github.com/mailgun/mailgun-go/v4 library to the patch version.