Back to Findings

IDOR in Transaction History API

HighOpenCVSS 3.1: 7.5CWE-639
TWP-003Tamkeen Web Portal9 months ago
Description

The `/api/transactions/:id` endpoint does not verify that the authenticated user owns the requested transaction. Any authenticated user can view other users' transaction details by iterating through transaction IDs.

Proof of Concept
Authenticated as User A, request `GET /api/transactions/12345` where 12345 belongs to User B. The response returns User B's transaction data.
Remediation

Implement server-side authorization checks to verify the authenticated user owns the requested resource. Use indirect references (UUIDs) instead of sequential IDs.

Details
Affected Assethttps://app.tamkeen.sa/api/transactions
CVSS Score7.5
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWECWE-639