Exposed Session Tokens via Misconfigured Endpoint
The API endpoint for editing user profiles accepted a session token in a header that was short and predictable, with no rate limiting or expiry. An attacker could brute-force tokens to hijack sessions and take over accounts.
medium.com
Published on medium.com
Free Article Link: Click for free!
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the session tokens were too short and predictable, and the endpoint lacked rate limiting and token expiry.
Impact
An attacker could hijack sessions, take over accounts, and exfiltrate sensitive data at scale; no WAF, CAPTCHA, or lockout blocked the attempts.
What the attacker needed
A free account; ability to intercept requests; no rate limiting on endpoint
The fix
The report recommends using long, cryptographically secure random tokens, enforcing rate limiting, expiring and rotating tokens, using HTTPS, and setting Secure and HttpOnly cookie flags.
How it was found
- Log into a user account on target.com.
- Navigate to Settings → Edit Profile and change your username.
- Intercept the request using a proxy tool like Burp Suite.
- Send the request to Intruder, and set the Token header as the payload position.
- Use a list of random session token values, ending with the valid one.
- Launch the attack and analyze the responses.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A session token is like a temporary password that keeps you logged in. Here, the token was short and guessable, and the server let someone try many guesses quickly. That means an attacker could guess a valid token and act as another user.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.