Dotclear <= 2.6.2 (XML-RPC Interface) Authentication Bypass Vulnerability
The XML-RPC interface's user-setting method returned success whenever the supplied user ID matched the already-authenticated user, without checking the password. An attacker who could reach that code path with a matching user ID could bypass the password check.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerable code is located in the dcXmlRpc::setUser() method (inc/core/class.dc.xmlrpc.php):
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 setUser() method short-circuits and returns true when the supplied user ID equals the current session's user ID, so the password is never validated.
What the attacker needed
Access to the XML-RPC interface; a known user ID
The fix
The password should be verified before the method returns success, rather than trusting a matching user ID alone.
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.
A login routine is supposed to compare the password you give with the stored one. Here, one function skipped that comparison when the username already matched the current session, so the password check could be avoided. That means someone could get past the login step without knowing the correct 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.