Skip to content
Access control Write-up Intermediate

How I earned $500 bounty for privilege escalation vulnerability !!

A user with only view and edit permissions could create a new user with the Administrator role by accessing the edit-user endpoint with an ID of 0, which displayed an empty profile form. Saving that form created a new administrator account, allowing full control of the organisation's dashboard.

kumarmohank889 Follow

Published on kumarmohank889.medium.com

Hello , One fine day I got a program to hunt on from my friend, I have read the scope and started manually visiting the in-scope domains. Their paid product is a billing software for businesses — In simple words we can use this for managing customers, invoice, subscriptions etc..

Mohan Kumar N, on kumarmohank889.medium.com

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 edit-user endpoint did not check whether the user had permission to create users, and treated an ID of 0 as a request to create a new record instead of rejecting it.

Impact

A low-privileged user could create an administrator account and take full control of the organisation's dashboard.

What the attacker needed

A free trial account; ability to create custom roles; ability to invite users

How it was found

  1. Create a custom role with only view and edit user permissions.
  2. Invite a new user and assign that custom role.
  3. Log in as the invited user and open the users list.
  4. Open any user's edit page and change the ID in the URL to 0.
  5. Fill in the empty profile form and assign the Administrator role.
  6. Save the form; a new administrator account is created and an invite is sent.

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 billing software lets an admin invite users and give them roles. A user with limited rights found that by changing a number in the web address to zero, they got a blank form meant for editing existing users. Filling it in and saving created a brand-new account with the highest administrator role, which they should not have been allowed to do.

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.

More by kumarmohank889

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.