Skip to content
Open redirect Disclosed report Intermediate

Redirect FILTER bypass in report/comment

The external-link warning page on HackerOne could be bypassed by crafting a link that the filter did not recognise as a redirect URL, so a victim would be sent straight to an external site without seeing the warning. The reporter also combined this with a path trick to make the redirect work for any user.

coolboss Follow

Originally disclosed on HackerOne

Bounty$500 View original
  • Triaged in 13 hours
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 28 days

Hello,

I made few reports recently. But, I guess you did not understand my perspective. As my video recorder is not working, I am explaining everything in written.

Lately, I reported about 'External Link Warning Bypass to open redirect users' and @michiel attended the report. Actually, the report is combined using 2 bugs to exploit against 'ANY RANDOM VICTIM' against web. It became confusing henceforth. So, I am writing this again and explaining comprehensively.

Strictly FOLLOW the instructions mentioned below.

First :

Whenever, user posts a external link on HackerOne via report/comment then the link is passed through 'REDIRECT FILTER'. This 'REDIRECT FILTER' is supposed to prevent victims from getting open redirected. It presents a page with 'Proceed Button', when pressed redirects to external link. It verifies safety of the user clicking the link and give a nice message.

eg. http://www.google.com (Click this link. This link is external so it will passed through 'REDIRECT FILTER' and a 'Proceed button will be presented.')

Second:

Whenever user posts an internal link. It is trusted and it is not passed through 'REDIRECT FILTER'.

eg. https://hackerone.com (Click this link. This link is not passed through 'REDIRECT FILTER' and will not present a 'Proceed button'.)

Third:

  1. When you will click 1st link(i.e http://google.com) then a page with url='https://hackerone.com/redirect?signature=43cd652c2f1835df993825d00bed0660f498fc42&url=http%3A%2F%2Fwww.google.com'

will be presented with a 'Proceed button'.

  1. Modifying the url in THAT TAB will redirect you to that site.

eg. Modify the url in the tab to ---> https://hackerone.com/redirect/secure?signature=43cd652c2f1835df993825d00bed0660f498fc42&url=http%3A%2F%2Fwww.google.com

  1. This will redirect showing a message.

  2. But, WHEN YOU CLICK THE ABOVE LINK. You will be shocked to see that it doesn't get exploited as we expect it to be. It just works when we change the url in the tab.

  3. This is because the link is passed through 'REDIRECT FILTER'.

Fourth:

Let''s bypass the 'REDIRECT FILTER'.

  1. Now, https://hackerone.com is trusted. And is not passed through redirect filter. (Right click and inspect this link, this is not passed through 'REDIRECT FILTER')

  2. Now, https://hackerone.com/redirect/secure?signature=43cd652c2f1835df993825d00bed0660f498fc42&url=http%3A%2F%2Fwww.google.com

This is passed through 'REDIRECT FILTER' as it contains '/redirect'.

  1. Bypassing 'REDIRECT FILTER' now.

https://hackerone.com/../redirect/?signature=43cd652c2f1835df993825d00bed0660f498fc42&url=http%3A%2F%2Fwww.google.com (Right Click this link and Inspect. You will be shocked to see it bypassed 'REDIRECT FILTER')

Fifth :

Combining 'Bypassing REDIRECT FILTER' and "Duplicate report 'adding /secure to redirect'" to make an exploit working against any random user of HackerOne.

eg. https://hackerone.com/../redirect/secure?signature=43cd652c2f1835df993825d00bed0660f498fc42&url=http%3A%2F%2Fwww.google.com

(Click this link. And see BOOM ...!) This link bypasses 'REDIRECT FILTER' and also have some more impact then all.

Once again, STRICTLY FOLLOW THE INSTRUCTIONS TO REPRODUCE. Have a good day. :)

I will be happy to hear reply soon on this. :)

Regards, Pranav

The original report as published on HackerOne, by coolboss. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 redirect filter matched on the literal text of the URL rather than normalising the path first, so a path containing '..' was not recognised as a redirect link.

Impact

An attacker could send a HackerOne user a link that skips the external-link warning page and redirects them to an arbitrary external site, which could aid phishing.

What the attacker needed

Victim clicks a crafted link; attacker can post links in reports or comments

How it was found

  1. Post an external link in a report or comment and observe it goes through the redirect warning page.
  2. Note that an internal link is trusted and skips the warning.
  3. Modify the redirect URL in the browser tab to add '/secure' and see it still works only when typed, not when clicked.
  4. Craft a link using a '..' path segment so the filter does not recognise it as a redirect link.
  5. Click the crafted link and observe it bypasses the warning and redirects directly.

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.

This report shows a crafted link can skip the warning page and send someone to an outside site, which matters because the warning is a safety check.

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.

More by coolboss

View all

13 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.