Bug 2047791 (CVE-2021-34337) - CVE-2021-34337 mailman: password checking timing attack in administrative REST API
Summary: CVE-2021-34337 mailman: password checking timing attack in administrative RES...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2021-34337
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2047792 2048605
Blocks: 2047793
TreeView+ depends on / blocked
 
Reported: 2022-01-28 14:50 UTC by Marian Rehak
Modified: 2022-01-31 20:12 UTC (History)
6 users (show)

Fixed In Version: mailman 3.3.5
Doc Type: If docs needed, set a value
Doc Text:
A timing attack was found in the mailman administrative REST API due to the usage of a simple string comparison function when checking the password. This flaw allows an attacker who can talk to the REST API to discover the admin password due to timing leaks.
Clone Of:
Environment:
Last Closed: 2022-01-31 16:05:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2022-01-28 14:50:19 UTC
Check the REST API password in a way that is resistant to timing attacks. 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.

Reference:

https://bugs.gentoo.org/828115

Comment 1 Marian Rehak 2022-01-28 14:50:33 UTC
Created mailman tracking bugs for this issue:

Affects: fedora-34 [bug 2047792]

Comment 2 Riccardo Schirone 2022-01-31 15:32:15 UTC
Created mailman3 tracking bugs for this issue:

Affects: fedora-all [bug 2048605]

Comment 4 Riccardo Schirone 2022-01-31 15:55:30 UTC
Marking all RHEL mailman versions as not affected because the versions shipped there are based on mailman 2 which does not have the REST API which is used in this vulnerability and that affects only mailman 3.

Comment 5 Riccardo Schirone 2022-01-31 16:04:51 UTC
REST API was introduced in Mailman 3.0 alpha, see https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/docs/NEWS.rst#alpha-3-working-man .


Note You need to log in before you can comment on or make changes to this bug.