Skip to content
Open redirect Disclosed report Beginner

External links should use rel="noopener" or use the redirect service

External links in the HackerOne interface that open in a new tab lack the rel="noopener" attribute, allowing the linked page to control the original tab's location. An attacker who can control the linked page could redirect the HackerOne tab to a phishing page.

lukasreschke Follow

Originally disclosed on HackerOne

  • Triaged in 39 hours
  • Fixed in 16 days
  • Disclosed after 16 days

This is a rather low severity one and a successful exploitation relies on unlikely user interaction as well as the ability to control the HTML output of an remote host. Furthermore it is a kinda new hardening features in some browsers. Though one can work around this using "noreferrer" which is what we use in @ownCloud for this reason since a longer time.

Anyways, I thought I should give you a heads-up about this anyways :-)


Our program has setup an integration with our internal issue tracker, this allows us to escalate reports directly into our internal tracker:

escalate-view.png
escalate-view.png From the original on HackerOne

Once escalated the report will offer a link to our internal issue tracker here, the following markup is used as can be seen in F79972:

link-to-site.png
link-to-site.png From the original on HackerOne
HTML
<a class="word-break--all" href="https://██████/███████/█████████/issues/187" target="_blank" data-reactid=".1.1.2.$110655.1.0.1.0.0.2.1.0.1">187</a>

What is missing here seems to be the rel=noopener attribute, if this is not given using target="_blank" allows the opening side to control the origin of the linking page. See https://mathiasbynens.github.io/rel-noopener/ for more technical details.

The same is actually also valid for the CVE links as can be seen in #110655 for example.

This can behaviour can be verified with Chrome by changing the href of an escalated report to something like https://mathiasbynens.be/demo/opener. Not the coolest exploit obviously since the following pre-requirements are required:

  1. Adversary is able to escalate a report into an external issue tracker
  2. Adversary is able to control the response of the external issue tracker

So one of the only likely exploit scenarios seems to be:

  1. User A of organisation Ananas tells HackerOne to configure an external issue tracker pointing to a self-hosted GitLab or whatever.
  2. User A of organisation Ananas modifies their GitLab in a way to return malicious Javascript that would redirect the HackerOne tab to a faked login page.
  3. User A of organisation Ananas escalates a report to that page.
  4. User B of organisation Banana is invited to organisation Ananas to help out there with triaging.
  5. User B of organisation Banana goes to the report, clicks on the escalation link and the HackerOne tab gets redirected to the faked login page
  6. User enters credentials into the faked login page assuming that the previously opened tab is still a legit HackerOne tab.

As can be seen the attack scenario is pretty small :-)


Side remark: I don't expect any actual bounty for this. It's more an hardening and relies on quite some user interaction. I'd however appreciate if you could add the rel=noopener link to external links.

If you believe this warrants a bounty please donate it to Médecins Sans Frontières.

The original report as published on HackerOne, by lukasreschke. 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 application does not add rel="noopener" to links that use target="_blank", leaving window.opener accessible to the linked page.

Impact

An attacker could redirect a HackerOne tab to a phishing page, but the attack requires unlikely user interaction and control over the external host.

What the attacker needed

Attacker can escalate a report to an external tracker; attacker controls the external tracker's response; victim clicks the escalation link

The fix

The application should add rel="noopener" (or rel="noreferrer") to external links that use target="_blank".

How it was found

  1. Adversary is able to escalate a report into an external issue tracker
  2. Adversary is able to control the response of the external issue tracker
  3. User A of organisation Ananas tells HackerOne to configure an external issue tracker pointing to a self-hosted GitLab or whatever.
  4. User A of organisation Ananas modifies their GitLab in a way to return malicious Javascript that would redirect the HackerOne tab to a faked login page.
  5. User A of organisation Ananas escalates a report to that page.
  6. User B of organisation Banana is invited to organisation Ananas to help out there with triaging.

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.

When a link opens in a new tab, the new page can sometimes access the original page through a browser feature called 'window.opener'. If the new page is malicious, it can change the original page's address to a fake login form. This report points out that some links on HackerOne do not block this access.

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 lukasreschke

View all

19 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.