Title

Insecure Direct Object Reference (IDOR) on id= allows any authenticated user to read other users' personal information

Severity

P2 — High

Any logged-in user can retrieve another user's profile data — including full name, email, phone number, and address — by changing a numeric identifier in an API request. Write or modify access was not confirmed, which keeps this below P1.

Factor Assessment
Attack complexity Low — single parameter change
Privileges required Low — any standard account
User interaction None
Confidentiality impact High — PII of other users
Integrity / availability impact None observed
Indicative CVSS 3.1 ~6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)

Summary

The profile API uses the user_id path parameter to decide which record to return but does not verify that the authenticated user owns or is permitted to view that record. Because identifiers are sequential and predictable, an attacker could enumerate PII for a large portion of the user base.

Root cause

Steps to reproduce

Use only two test accounts you control.

  1. Create two test accounts: Account A (attacker) and Account B (victim).
  2. Log in as Account B and note its user ID from the profile page or API response (e.g., 10452).
  3. Log in as Account A in a separate browser session and open the profile page.
  4. Capture the following request in an approved proxy tool.
  5. Replace the ID with Account B's ID (10452) and resend using Account A's token.
  6. Inspect the response.