Project

General

Profile

Actions

Bug #4

open
SB FU

Broken Access Control — Employee can view all employees' leave requests (GET /get-leaves)

Bug #4: Broken Access Control — Employee can view all employees' leave requests (GET /get-leaves)

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 /get-leaves endpoint, which lists leave requests, has no role-based authorization or ownership scoping. Any authenticated user — including a low-privileged Employee — can call this endpoint and see the leave applications of every employee in the company, not just their own.


Files

Screenshot 2026-07-30 100554.png (103 KB) Screenshot 2026-07-30 100554.png Safia Borsha, 07/30/2026 10:06 AM
Screenshot 2026-07-30 100554.png
Actions

Also available in: PDF Atom