Skip to content
Open redirect Disclosed report Beginner

Incomplete fix for #181225 (target=_blank vulnerability)

The rich-text editor's parser rules allow links to use a target of _blank without forcing rel=noopener or noreferrer, and the simple rules only set rel to nofollow. A user who posts such a link could change the URL of the page that opened it.

cablej Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Disclosed after 12 months

Hi,

I believe the fix for #181225 is incomplete in the rules for Airship wysihtml parser rules.

At https://github.com/paragonie/airship/blob/58f96aa0e5002b60e74456502d9bfc9483d77b3d/src/public/js/wysihtml5/parser_rules/advanced_and_extended.js, the 'target' parameter for links is allowed to be anything, while there are no forced 'rel' attributes. Additionally, https://github.com/paragonie/airship/blob/58f96aa0e5002b60e74456502d9bfc9483d77b3d/src/public/js/wysihtml5/parser_rules/simple.js sets 'rel' to only 'nofollow'.

This could be exploited by a user who posts a link with 'target=_blank', who can then change the URL of the opening page. To fix, add 'rel="noopener noreferrer"' to the parser rules.

Thanks.

The original report as published on HackerOne, by cablej. 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

The editor's parser rules permit arbitrary target values on links and do not force rel=noopener noreferrer, so the simple rules only add nofollow.

Impact

A user who posts a link with target=_blank could change the URL of the opening page, though the report does not demonstrate this in practice.

What the attacker needed

Ability to post a link in the editor

The fix

The parser rules should force rel="noopener noreferrer" on links.

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.

Links opening in a new tab can lack protection. The editor allowed links without forcing rel=noopener, so a posted link could change the opening page's URL.

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 cablej

View all

25 more disclosed reports, best first.

More from Paragon Initiative Enterprises

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.