Project

General

Profile

Actions

Bug #6

open
SB FU

Broken Access Control — Employee can view other employees' expense records

Bug #6: Broken Access Control — Employee can view other employees' expense records

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

Two expense endpoints are missing proper access control:

  1. GET /get-expenses — returns the full company-wide expense list to any authenticated user, with no role check. It should be restricted to approvers/finance, but Employee tokens get the same data.
  2. GET /get-my-expenses/:email — intended to return only the caller's own expenses, but the backend never verifies that the email in the URL belongs to the logged-in user (IDOR). Substituting any other employee's email returns their full expense history.

Files

Screenshot 2026-07-30 103104.png (120 KB) Screenshot 2026-07-30 103104.png Safia Borsha, 07/30/2026 10:31 AM
Screenshot 2026-07-30 103104.png
Actions

Also available in: PDF Atom