The Art of Crafting Malicious URLs: IDOR Meets Email Verification
An IDOR allowed an attacker to swap a password reset token into a registration verification URL and change the numeric account ID to leak the email prefix of other users. A separate flaw let an attacker change their account email to any address without verification, enabling pre-account takeover and denial of service for new users.
Published on medium.com
Today I’ll share how a strange IDOR leaking PII via crafted URLs and an email update flaw that skips verification can be chained together, leading to targeted attacks and even denial of service for new users in European Union official website .
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 server did not properly validate that the token and account ID belonged together, and it failed to require email verification when changing an account's email address.
Impact
An attacker could leak the email prefix of any user and, by changing their own account email to a victim's address without verification, prevent new users from registering and potentially take over accounts.
What the attacker needed
A free account; victim's numeric account ID; victim's email address
How it was found
- Register a new account on the target web application.
- Receive an email verification link containing a numeric ID and a verification token.
- Trigger a password reset for your account and extract the reset token from the link.
- While logged in, replace the verification token in the registration verification URL with the reset token.
- Modify the numeric ID to that of the victim.
- The server responds with personal information of the target account.
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.
An IDOR (Insecure Direct Object Reference) is when a website lets you access someone else's data just by changing an identifier like a number in the URL. Here, the attacker reused a token from their own password reset in a different link and changed the account number to see other people's email details. Separately, the site let users change their email address without proving they own it, so an attacker could claim someone else's email and block them from signing up.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.