CVE-2020-7245
Incorrect username validation in the registration process of CTFd v2.0.0 - v2.2.2 allows an attacker to take over an arbitrary account if the username is known and emails are enabled on the CTFd instance.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.17%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
Incorrect username validation in the registration process of CTFd v2.0.0 - v2.2.2 allows an attacker to take over an arbitrary account if the username is known and emails are enabled on the CTFd instance. To exploit the vulnerability, one must register with a username identical to the victim's username, but with white space inserted before and/or after the username. This will register the account with the same username as the victim. After initiating a password reset for the new account, CTFd will reset the victim's account password due to the username collision.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.17% probability · 66th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-640
- Affected
- ctfd/ctfd
- Source
- cve@mitre.org
References
- https://github.com/CTFd/CTFd/pull/1218Third Party Advisory
- https://github.com/CTFd/CTFd/releases/tag/2.2.3Release Notes
- https://github.com/CTFd/CTFd/pull/1218Third Party Advisory
- https://github.com/CTFd/CTFd/releases/tag/2.2.3Release Notes
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.