Authentication Bypass Vulnerability in Mura CMS and Masa CMS (CVE-2022-47003 and CVE-2022-47002)
A logic flaw in the 'remember me' functionality of Mura CMS and Masa CMS allows an unauthenticated attacker to log in as any user by supplying a valid userid cookie and a specially crafted userHash cookie that decrypts to an empty string. The attacker can obtain valid userid UUIDs from an unauthenticated JSON API, making exploitation practical.
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the conditional check `!len(arguments.userHash) || arguments.userHash == rsUser.userHash` treats an empty decrypted hash as valid, so a blank or specially crafted userHash cookie bypasses authentication.
Impact
An unauthenticated attacker could log in as any Site Member or System User, including administrators, and access any application page, action, or asset as that user.
What the attacker needed
A valid userid UUID (leaked via JSON API); ability to send crafted cookies; Lucee or Adobe ColdFusion (different payloads)
The fix
The conditional was fixed to require a non-empty userHash and a matching hash before logging in; the text also recommends adding an HMAC integrity check before decryption.
How it was found
- Obtain a valid userid UUID from the unauthenticated Mura JSON API.
- Send a request with a userid cookie set to that UUID and a blank userHash cookie (on Lucee) or a specially crafted value (on Adobe ColdFusion).
- The application decrypts the userHash cookie to an empty string, the conditional evaluates true, and the user is logged in as the supplied userid.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you tick 'remember me' on a website, the site stores a cookie so you stay logged in. This code checked that cookie in a way that could be tricked: if the cookie's encrypted value was empty, the check passed without verifying the password. An attacker who knows another user's ID (which the site leaked through an API) could then log in as that user without any password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.