CVE-2024-24771
Open Forms potential multi-factor authentication bypass
Check your servers for CVE-2024-24771
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-24771 affects open-forms, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Open Forms allows users create and publish smart forms. Versions prior to 2.2.9, 2.3.7, 2.4.5, and 2.5.2 contain a non-exploitable multi-factor authentication weakness. Superusers who have their credentials (username + password) compromised could potentially have the second-factor authentication bypassed if an attacker somehow managed to authenticate to Open Forms. The maintainers of Open Forms do not believe it is or has been possible to perform this login. However, if this were possible, the victim's account may be abused to view (potentially sensitive) submission data or have been used to impersonate other staff accounts to view and/or modify data. Three mitigating factors to help prevent exploitation include: the usual login page (at `/admin/login/`) does not fully log in the user until the second factor was succesfully provided; the additional non-MFA protected login page at `/api/v2/api-authlogin/` was misconfigured and could not be used to log in; and there are no additional ways to log in. This also requires credentials of a superuser to be compromised to be exploitable. Versions 2.2.9, 2.3.7, 2.4.5, and 2.5.2 contain the following patches to address these weaknesses: Move and only enable the API auth endpoints (`/api/v2/api-auth/login/`) with `settings.DEBUG = True`. `settings.DEBUG = True` is insecure and should never be applied in production settings. Additionally, apply a custom permission check to the hijack flow to only allow second-factor-verified superusers to perform user hijacking.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.60%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 7 Feb 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-284 Improper Access Control
- CWE-287 Improper Authentication
- CWE-654 Reliance on a Single Factor in a Security Decision
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| open-forms |
affected < 2.2.9 affected >= 2.3.0-alpha.0, < 2.3.7 affected >= 2.4.0-alpha.0, < 2.4.4 affected >= 2.5.0-alpha.0, < 2.5.2
|
Is my server affected?
Find the installed version of open-forms and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i open-forms
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-24771 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-24771RHEL, Rocky, Alma, Fedora
rpm -q open-forms
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-24771Alpine
apk list --installed | grep -i open-formsWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-24771
trivy image --scanners vuln IMAGE | grep CVE-2024-24771
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/open-formulieren/open-forms/releases/tag/2.2.9 github.com
- https://github.com/open-formulieren/open-forms/releases/tag/2.3.7 github.com
- https://github.com/open-formulieren/open-forms/releases/tag/2.4.5 github.com
- https://github.com/open-formulieren/open-forms/releases/tag/2.5.2 github.com
Source: the record CVE-2024-24771 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse