Skip to main content
XsiSec.com
HomeReposBlogProjectsPortfolio
© 2026 XsiSec.com
Security rules |security.txt
Updated 2026-08-15 · v1.0.0+2026-08-14.82f92cb · 82f92cb
← Back to overview
Security article

User ID controlled by request parameter with data leakage in redirect

User ID controlled by request parameter with data leakage in redirect: This lab contains an access control vulnerability where sensitive information is leaked in the body of a redirect response. • PortSwigger • Access control vulnerabilities • params, redirect

2023-05-104 tags
Tags

Lab Walkthrough: Access Control Vulnerability – API Key Disclosure


🎯 Objective

This lab contains an access control vulnerability where sensitive information is leaked in the body of a redirect response.

Goal:

  • Obtain the API key for the user carlos
  • Submit it as the solution.

📝 Provided Information

  • Valid credentials:
    text
    wiener:peter

🔎 Analysis

Step 1: Log In

Logged in as wiener with the provided credentials.


Step 2: Inspect Parameters

Checked the account-related requests and spotted a parameter in the request:

Request Parameters

The vulnerable endpoint looked like this:

http
GET /my-account?id=wiener

Step 3: Exploit the Access Control Flaw

Replaced wiener with carlos in the request:

http
GET /my-account?id=carlos

This exposed the API key for carlos in the response body.

API Key Exposed


🎉 Result

Successfully retrieved the API key for carlos via insecure direct object reference (IDOR) caused by broken access control. ✅

Navigate

In this post

  1. 01Lab Walkthrough: Access Control Vulnerability – API Key Disclosure
  2. 02🎯 Objective
  3. 03📝 Provided Information
  4. 04🔎 Analysis
  5. 05Step 1: Log In
  6. 06Step 2: Inspect Parameters
  7. 07Step 3: Exploit the Access Control Flaw
  8. 08🎉 Result
Search
Explore

Popular tags

Browse all 30 tags

Comments

0 comments

No comments yet — be the first to comment.