Bypassing the External Link Warning
A warning that HackerOne shows before sending users to external sites could be bypassed by inserting a dot path segment into a SAML sign-in URL, so a crafted Markdown link silently redirected victims to an attacker-controlled page. An attacker could use this in social engineering to try to steal HackerOne credentials.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 40 days
- Disclosed after 40 days
Summary:
As the HackerOne team is aware, the URL https://hackerone.com/users/saml/[email protected] can redirect users to external pages. Because of this, there is a protection in the links created by Markdown to show the user a warning when clicking in any link started with https://hackerone.com/users/saml/sign_in or pointing to third-party domains.
But this protection can be bypassed.
Steps To Reproduce:
Give a look at the report below:
https://hackerone.com/reports/9128701
As you saw, the above link doesn't open a real report but redirects the user to an external page, without any warning.
Malicious Markdown:
[https://hackerone.com/reports/9128701](https://hackerone.com/users/%2E/saml/sign_in?email=test██████████&remember_me=false)
Recommendation:
Show an external link warning for any link to https://hackerone.com/users/saml/sign_in*.
Attackers can try to bypass the protection by using /. and/or /.., like in the above case.
Impact
This bug can be used in social engineering attacks to try to steal credentials from HackerOne users.
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 external-link check matched the URL as a string prefix rather than normalising the path, so a dot segment inside the trusted sign-in path slipped past the check while the server still resolved it to the redirect endpoint.
Impact
A crafted link could send HackerOne users to an attacker's page without the usual warning, which could be used in social engineering to try to steal their credentials.
What the attacker needed
Victim clicks a crafted link in a report
The fix
The external link warning should be shown for any link to the sign-in address, including variants that use dot segments to dodge the check.
How it was found
- Open a report and create a Markdown link whose target is the sign-in address with a dot segment inserted and an email parameter set.
- Click the rendered link in the report.
- Observe that the browser is sent to an external page with no external link warning shown.
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.
HackerOne adds a warning page whenever a link in a report would take you off the site, so you know you are leaving. The researcher found that a link to the site's own sign-in address, with a small path trick added, still ends up on an outside page but skips that warning. A tricked reader could then land on a fake login page and type their password there.
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.