Craft CMS: Weak Password Recovery Mechanism for Forgotten Password
CVE-2022-29933 is a high-severity weak password recovery mechanism for forgotten password vulnerability in Craft CMS, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. Affected Craft CMS versions: 3.7.36 and earlier. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 4.58% chance of exploitation within 30 days, which is in the top 8.22% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of Craft CMS you run against the affected versions below, and install the vendor's latest release.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.8 | High | NVD |
| CVSS 2.0 | 6.8 | Medium | NVD |
Official description
Craft CMS through 3.7.36 allows a remote unauthenticated attacker, who knows at least one valid username, to reset the account's password and take over the account by providing a crafted HTTP header to the application while using the password reset functionality. Specifically, the attacker must send X-Forwarded-Host to the /index.php?p=admin/actions/users/send-password-reset-email URI. NOTE: the vendor's position is that a customer can already work around this by adjusting the configuration (i.e., by not using the default configuration).
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Weak Password Recovery Mechanism for Forgotten Password
The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.
How developers prevent this class of flaw
- Make sure that all input supplied by the user to the password recovery mechanism is thoroughly filtered and validated.
- Do not use standard weak security questions and use several security questions.
- Make sure that there is throttling on the number of incorrect answers to a security question. Disable the password recovery functionality after a certain (small) number of incorrect guesses.
More Weak Password Recovery Mechanism for Forgotten Password vulnerabilities (CWE-640)
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/craftcms/cms/blob/develop/CHANGELOG.mdRelease Notes, Third Party Advisory
Third-party and government advisories
- sec-consult.com/vulnerability-lab/Third Party Advisory
Technical write-ups (may include proof of concept)
- packetstormsecurity.com/files/166989/Craft-CMS-3.7.36-Password-Reset-Poisoning-Attack.htmlExploit, Third Party Advisory, VDB Entry
- sec-consult.com/vulnerability-lab/advisory/password-reset-poisoning-attack-craft-cms/Exploit, Third Party Advisory
Other vulnerabilities in Craft CMS
- 7.2 High severity
- 9.8 Critical severity
- 7.2 High severity
- 7.2 High severity
- 8.8 High severity
- 8.8 High severity
Recent Weak Password Recovery Mechanism for Forgotten Password vulnerabilities
- 7.5 High severity
- 9.8 Critical severity
- 7.5 High severity
- 9.8 Critical severity
Spotted an error? Tell us.