Limited Open redirection using SSO-SAML
A double slash in the SAML sign-in path bypassed the external link warning page, giving a limited open redirect to an SSO URL.
Originally disclosed on HackerOne
- Triaged in 6 days
- Fixed in 21 days
- Disclosed after 5 months
Hello,
Endpoint: https://hackerone.com/users//saml/[email protected]&remember_me=true
Recently, you have patched an open redirection issue which was reported as #171398. I found a bypass of that patch.
Steps to reproduce:
- Add following in comment/report :
https://hackerone.com/users//saml/[email protected]&remember_me=true
2. Click on link.
3. You will redirected on SSO URL without going through External Link Warning page.
4. Done.
PoC : https://hackerone.com/users/saml/[email protected]&remember_me=true (Through external warning page) https://hackerone.com/users//saml/[email protected]&remember_me=true (Without external warning page)
Suggested Fix: Use more stronger regular expression and filtration at this endpoint.
Best regards, Shailesh
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the patch that blocked the redirect used a pattern that did not account for a double slash in the path, so the redirect still fired without the warning.
What the attacker needed
Victim clicks a crafted link
The fix
The endpoint should use a stronger regular expression and filtering to block the bypass.
How it was found
- Place the crafted link in a comment or report.
- Click the link.
- Observe the redirect to the SSO URL without the external link warning page.
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 report has not been written yet. The Original tab links to the source.
An open redirect is when a website sends you to another site based on a link you click. Normally a warning page appears first, but adding an extra slash in the address skipped that warning, so the redirect happened silently.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.