Details on the Privilege Escalation Vulnerability in Joomla
A removed registration method in Joomla did not check whether user registration was enabled and did not use the validated data before saving a new user. An attacker could create an account even when registration was disabled and override user properties such as group membership or the administrator's credentials.
blog.sucuri.net
Published on blog.sucuri.net
Yesterday, Joomla! 3.6.4 was released, patching a critical privilege escalation and arbitrary account creation vulnerability.
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
The vulnerable register method skipped the registration-enabled check and passed unfiltered user input directly to the user model's bind method, allowing arbitrary user properties to be set.
Impact
An attacker could create an account when registration was disabled and could change the administrator's username, password, and email address, potentially leading to remote code execution by uploading a shell through the administrator account.
What the attacker needed
Access to the vulnerable Joomla site; registration may be disabled
How it was found
- Send a request to the vulnerable register method with user data, even when registration is disabled.
- Include extra parameters such as the groups property or the id property in the user data.
- The extra parameters are passed unsanitized to the user model and bound to the user object.
- The new user is saved with the attacker-chosen properties, such as administrator group membership or an existing administrator's id.
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.
Joomla is a website building system. A part of its code that handled new user sign-ups was removed in a security update because it had two mistakes: it did not check if sign-ups were turned off, and it passed extra hidden fields straight into the new user record. By adding fields like 'group' or 'id', an attacker could make themselves an administrator or overwrite the real administrator's login.
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.