OpenCTI Privilege Escalation (CVE-2024–26139)
OpenCTI's GraphQL user profile mutation allowed an authenticated low-privilege user to change their own user ID to an administrator's ID, causing the application to treat them as the administrator. This resulted in full privilege escalation to administrative access.
medium.com
Published on medium.com
OpenCTI is an open source software for the categorization, sharing and management of cyber threat-intelligence knowledge and observables. Its primary objective is to structure, store, organize and visualize technical and non-technical information about cyber threats.
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 application failed to validate or protect sensitive user attributes such as the user ID during GraphQL profile update mutations, allowing arbitrary modification of the primary key used for identity lookup.
Impact
An authenticated low-privilege attacker could escalate to full administrative access, gaining control over the OpenCTI application.
What the attacker needed
Authenticated low-privilege account; ability to view a case created by an admin; intercepting HTTP requests
How it was found
- Log in as a low-privilege user and view a case created by the administrator.
- Intercept the GraphQL response for the case to extract the administrator's username and user ID.
- Navigate to the personal profile page and intercept the profile update mutation.
- Modify the user ID field in the mutation to the administrator's user ID and submit it.
- Log in again with the low-privilege credentials; the session is now associated with the administrator account.
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.
In many web apps, each user has a unique identifier (like a user ID) that the system uses to recognise who they are. OpenCTI let a normal user edit their own profile and change that ID to match an administrator's ID. After logging in again, the system confused the normal user with the administrator, giving them full admin rights.
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.