How I logged into user accounts with no information
A short link sent by text message logged the recipient straight into their account without any password, and the link's final characters could be changed to reach other users' accounts. An attacker could view and modify personal details such as name, date of birth, email, phone and interests without knowing the user ID.
This was one of the easiest bugs I found. Unfortunately this website did not have a bug bounty program so in place an email was sent to them.
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 short link contained a guessable token that authenticated the user without any additional check, allowing anyone who changed the token to access another account.
What the attacker needed
Receive or guess a short link; no account credentials needed
The fix
The short link should be replaced with a proper authentication mechanism that does not rely on a guessable token, and the company is working on a patch.
How it was found
- Receive a text message containing a short link to the website.
- Click the link and notice you are logged in automatically.
- Open the same link in a private browsing window and confirm you are still logged in.
- Use a tool to try different endings for the short link.
- Find a working link for another user and open it in a private window to access their 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.
Normally you log in with a username and password. Here, clicking a link in a text message was enough to be logged in, and the link ended with a short code. By changing that code, the author could open other people's accounts as if they were logged in. This is called an insecure direct object reference, where a system trusts a guessable identifier instead of checking who is asking.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.