Skip to content
Access control Write-up Beginner

(Part 2) API Mis configuration: How Employee can change Manager’s review for him.

The appraisal submission endpoint trusted a client-supplied employee ID parameter to decide whose review was being written, while the backend only used the JWT to identify the caller. An employee could change the ID to another user's value and overwrite that person's manager review ratings.

Aneesha D Follow

Published on interc3pt3r.medium.com

API Mis configuration: How Employee can change Manager’s review for him. Hello all,interc3pt3r.medium.com

Aneesha D (ohzo), on interc3pt3r.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 backend used the client-supplied id parameter to decide the target employee and only used the JWT to identify the caller, without checking that the caller was a manager authorised for that employee.

Impact

An employee could modify appraisal ratings for other users, undermining the integrity of the performance review system.

What the attacker needed

An employee account; a second account to test with; ability to intercept requests

The fix

The backend should verify from the JWT that the caller is a valid manager for the target employee before accepting a rating.

How it was found

  1. Submit an appraisal form and capture the request, noting the id parameter is set to 0.
  2. Create a second account and note its employee ID.
  3. Replay the appraisal submission with the id parameter changed to the other user's ID.
  4. Observe that the other user's previously set average rating was increased.

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 submit your appraisal, the app sends a request that includes a number saying whose review it is. The server should check from your login token who you are and whether you are allowed to write that review, but it instead believed the number in the request. So a normal employee could swap the number for a colleague's and change their ratings.

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 Aneesha D

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.