How I Uncovered an SSRF Vulnerability in a Private HackerOne Prog
A password reset page accepted a redirection parameter that sent the user to any external site, and the same parameter could be pointed at an attacker-controlled server that then received a request from the company's infrastructure. An attacker could use this to make internal requests and learn internal IP addresses.
Josekutty Kunnelthazhe Binu Follow
Published on medium.com
Hello guys it’s been a while I write a new article.I’ve been caught up with quite a few things.
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 redirection parameter was used to build a server-side or client-side redirect without checking that the destination belonged to the target site.
Impact
The author reports that the collaborator output revealed company server internal IP addresses, which could help an attacker map the internal surface, though the text gives no further detail on what was reachable.
What the attacker needed
A free account; victim opens a crafted reset link
The fix
The redirection target should be validated against an allowlist of trusted destinations, or replaced with a server-side mapping so user input never decides where the request goes.
How it was found
- Create and verify an account, then request a password reset.
- Open the reset link from the email and note the redirection parameter on the page.
- Set the redirection value to an external site, enter a new password and submit.
- Observe the browser being sent to the external site.
- Repeat the reset and set the redirection value to a collaborator address instead.
- Submit and observe the request arriving at the collaborator over HTTPS.
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.
When you reset a password, the site may send you back to a page afterwards, chosen by a value in the link. If the site trusts that value blindly, it can be told to send you to a stranger's site instead. The same trick can sometimes make the company's own server fetch a link, which reveals things about its private network.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.