Pentest: 0day in iTop 2.4.0 gave me Domain Admin privileges
A low-level user could change the password of any other user, including an administrator, by abusing the CSV import feature's update functionality, which lacked proper access control. After logging in as the administrator, the attacker used the ConfigEditor to achieve remote code execution and then captured domain administrator credentials.
First of all, many thanks on how you handled this breach discovery : we had the time we need to understand it and produce a clean fix, and contact all of our community !
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 CSV import feature did not enforce proper authorisation checks when updating existing user objects, allowing any authenticated user to modify other users' attributes, including passwords.
Impact
An attacker with low-level credentials could take over the administrator account, achieve remote code execution, and ultimately obtain domain administrator credentials, leading to full domain compromise.
What the attacker needed
Valid low-level user credentials; access to the iTop web interface
The fix
The vendor issued a patch to fix the access control flaw in the CSV import feature.
How it was found
- Log in as a low-level user (credentials obtained via domain authentication or brute force).
- Access any user profile by specifying the user ID in the request, revealing the administrator's username.
- Use the CSV import feature to update the administrator's password, bypassing permission checks by copying parameters from a profile.
- Log in as the administrator with the new password.
- Use the ConfigEditor to execute arbitrary code and modify the authentication script to log credentials.
- Capture the domain administrator's password from the log file.
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.
The web application allowed a normal user to update other users' details, including their passwords, without checking if they had permission. By changing the administrator's password, the attacker could log in as the administrator and then run commands on the server. This is dangerous because it lets an attacker take full control of the system.
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.