HackerOne · Report #278095
Invalid Host detection at https://hackerone.com/redirect
Validstatus
lowseverity
57upvotes
3 Dec 2017disclosed
How it was found
Hello,99
Summary: Host detection at https://hackerone.com/redirect is invalid and insecure.
Description : On redirection page, host is detected and highlighted to prevent phishing attacks. But that protection is weak and can be bypassed. So an attacker can redirect victim on another host instead of highlighted host. Also, it possible to redirect victim on a IDN homograph website.
Host filtration can be bypassed using whitespace characters like %0D,%0A,%00,%09 etc.
Steps To Reproduce
- Use this markdown code
[Go to yelp.com](https://yelp.com%0A.evil.com%5C@x)in a comment - Click on
Go to yelp.comlink. - External link warning page will be shown
yelp.comwill be highlighted as targeted Host.- Click on Proceed button.
- You will be redirected on https://yelp.com.evi.com (a subdomain of evil.com)
- Done
Using IDN homograph :
- Try
[Yelp.com](https://yelp.com%0A.уelp.com%5C@x) - Click on
Yelp.com yelp.comwill be highlighted- You will be redirected on https://yelp.com.xn--elp-cfd.com/@x after clicking on Proceed button
- Done
Thanks, Shailesh