medium5.3No CVE yet
GHSA-f3q4-ggfp-jv34
Adyen APIs Library for Python timing attack vulnerability
Impact
Adyen has utility methods for validating notification HMAC signatures. The `is_valid_hmac` and `is_valid_hmac_notification` methods are vulnerable to a timing attack, you should compare the hash of the HMACs instead.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of data or systems being changed.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | Adyen | >= 2.2.0, < 7.1.0 | 7.1.0 |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-f3q4-ggfp-jv34
- https://github.com/Adyen/adyen-python-api-library/issues/168
- https://github.com/Adyen/adyen-python-api-library/pull/170
- https://github.com/Adyen/adyen-python-api-library/commit/3292133dbc00ffc4cccfb92de672a76eaa587ca5
- https://github.com/pypa/advisory-database/tree/main/vulns/adyen/PYSEC-2023-1.yaml