Project

General

Profile

Actions

Bug #8

open
SB FU

Employee can update another employee's performance review (PUT /update-performance-review/:id)

Bug #8: Employee can update another employee's performance review (PUT /update-performance-review/:id)

Added by Safia Borsha about 2 months ago. Updated 10 days ago.

Status:
New
Priority:
High
Assignee:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The /update-performance-review/:id endpoint has no ownership or role check before applying an update. It only verifies that the request carries a valid JWT — it does not confirm that the caller is the original reviewer, a manager of the reviewed employee, or holds any elevated role.

Because of this, a regular Employee can locate or guess any performance review's ID and directly modify its contents — ratings, comments, and overall score — even though they had no part in creating that review. This is exploitable both through the app UI (if the review ID is exposed anywhere in the frontend, e.g. in an API response or URL) and directly via a tool like Postman, since the endpoint itself performs no authorization check regardless of how the request is sent.

This allows any employee to alter or sabotage a colleague's official performance record after the fact — inflating their own score, lowering someone else's, or erasing a manager's original comments — with no audit trail distinguishing a legitimate reviewer's edit from an unauthorized one.


Files

Screenshot 2026-07-30 104906.png (63.5 KB) Screenshot 2026-07-30 104906.png Safia Borsha, 07/30/2026 10:49 AM
Screenshot 2026-07-30 104906.png
Actions

Also available in: PDF Atom