Headline
CVE-2021-34337: Check the REST API password in a way that is resistant to timing attacks (CVE-2021-34337) (e4a39488) · Commits · GNU Mailman / Mailman Core · GitLab
An issue was discovered in Mailman Core before 3.3.5. An attacker with access to the REST API could use timing attacks to determine the value of the configured REST API password and then make arbitrary REST API calls. The REST API is bound to localhost by default, limiting the ability for attackers to exploit this, but can optionally be made to listen on other interfaces.
Skip to content
Commit e4a39488 authored Jun 08, 2021 by legoktm
Browse files
Check the REST API password in a way that is resistant to timing attacks (CVE-2021-34337)
Using basic string equality is vulnerable to timing attacks as it will short circuit at the first wrong character. Using hmac.compare_digest avoids that issue and will take the same time, regardless of whether the value is correct or not.
This is only exploitable if an attacker can talk directly to the REST API, which by default is bound to localhost.
Fixes #911.
- Changes 2
- Pipelines 1
Related news
An issue was discovered in Mailman Core before 3.3.5. An attacker with access to the REST API could use timing attacks to determine the value of the configured REST API password and then make arbitrary REST API calls. The REST API is bound to localhost by default, limiting the ability for attackers to exploit this, but can optionally be made to listen on other interfaces.