Craft CMS discloses password hashes
Impact
All Craft CMS versions between 3.0.0 and 3.7.32 disclose password hashes of users who authenticate using their E-Mail address or username in Anti-CSRF-Tokens. Craft CMS uses a cookie called CRAFT_CSRF_TOKEN and a HTML hidden field called CRAFT_CSRF_TOKEN to avoid Cross Site Request Forgery attacks. The CRAFT_CSRF_TOKEN cookie discloses the password hash in without encoding it whereas the corresponding HTML hidden field discloses the users' password hash in a masked manner, which can be decoded by using public functions of the YII framework.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 3.0.0 before 3.7.33Ecosystem versions | 3.7.33 |
Version evidence: OSV · GHSA-h972-v458-m892
View original version evidence (350 explicit versions)
Original source description
All Craft CMS versions between 3.0.0 and 3.7.32 disclose password hashes of users who authenticate using their E-Mail address or username in Anti-CSRF-Tokens. Craft CMS uses a cookie called CRAFT_CSRF_TOKEN and a HTML hidden field called CRAFT_CSRF_TOKEN to avoid Cross Site Request Forgery attacks. The CRAFT_CSRF_TOKEN cookie discloses the password hash in without encoding it whereas the corresponding HTML hidden field discloses the users' password hash in a masked manner, which can be decoded by using public functions of the YII framework.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2022-37783
- Security advisory at-trustit.tuv.at/tuev-trust-it-cves/cve-disclosure-of-password-hashes
- Security advisory cves.at/posts/cve-2022-37783/writeup
- Source reference github.com/craftcms/cms
- Security advisory www.openwall.com/lists/oss-security/2024/06/06/1