Skip to content
Access control Write-up Beginner

Privilege Escalation via IDOR Allows Unauthorized User Injection

The application allowed a user to add arbitrary users to a device group by changing the contactId parameter, bypassing the restriction that only contacts could be added. An attacker could inject any user into their group, potentially granting them access to devices.

omerasraan Follow

Published on medium.com

Hi again, it’s Omar and today i want to share with you my first bounty on a public yeswehack program, and an interesting privilege escalation.

Omer Mohsen, on 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

Impact

An attacker could add any user to their device group, potentially giving that user access to devices they should not manage.

What the attacker needed

A free account; at least one contact

How it was found

  1. Create two accounts and connect them as contacts.
  2. Navigate to the devices tab and add a manager from your contacts, assigning permissions.
  3. Intercept the request and change the contactId parameter to an arbitrary ID.
  4. Observe that the request returns 200 OK and the arbitrary user is added to the group.

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.

When you add a manager to your device group, the app sends a request with an ID number for that person. The app didn't check if that ID actually belonged to one of your contacts, so you could put any number and add a stranger. This is like being able to invite anyone to a private party even if they're not on your guest list.

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 omerasraan

View all

2 more disclosed reports, 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.