Be Patient and Keep it Simple, The Bug is There
An IDOR on the SSO settings page allowed editing other users' SSO configuration by adding an account_id parameter. A separate API endpoint failed to check the password for some users, enabling discovery of valid usernames and access to sensitive user data.
medium.com
Published on medium.com
I hope you are doing well. Long time not writing anything… right?
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 missing authorization checks: the SSO settings endpoint did not verify the account_id belonged to the user, and the user-listing API failed to validate the password parameter for some users.
Impact
An attacker could edit other users' SSO settings and access sensitive user information such as emails and phone numbers; the text also suggests potential to show, edit, and delete users.
What the attacker needed
Credentials from the program; elevated privileges requested from program; knowledge of account_id parameter
How it was found
- Obtain credentials from the program and request elevated privileges.
- Access the SSO settings page and add the account_id parameter to edit another user's SSO settings.
- Read documentation to find the /api/users/allusers endpoint requiring username, password, and usersCount.
- Use ffuf to fuzz passwords for a known username against the endpoint.
- Use ffuf to fuzz usernames with a common password to find valid accounts.
- Discover additional endpoints /api/users/updateusers and /api/users/deleteusers.
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.
An IDOR (Insecure Direct Object Reference) is when a website lets you change a number or name in a request to access someone else's data. Here, adding an account_id parameter to a settings page let the attacker edit other users' single sign-on (SSO) settings. Separately, an API that lists users did not properly check passwords for some accounts, so an attacker could find valid usernames and see their emails and phone numbers.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.