HexBrain

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

  1. Use this markdown code [Go to yelp.com](https://yelp.com%0A.evil.com%5C@x) in a comment
  2. Click on Go to yelp.com link.
  3. External link warning page will be shown
  4. yelp.com will be highlighted as targeted Host.
  5. Click on Proceed button.
  6. You will be redirected on https://yelp.com.evi.com (a subdomain of evil.com)
  7. Done

Using IDN homograph :

  1. Try [Yelp.com](https://yelp.com%0A.уelp.com%5C@x)
  2. Click on Yelp.com
  3. yelp.com will be highlighted
  4. You will be redirected on https://yelp.com.xn--elp-cfd.com/@x after clicking on Proceed button
  5. Done

Thanks, Shailesh

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original