External URL page bypass
The markdown renderer's check for external URLs could be bypassed using a control character, allowing a link to be rendered that browsers treat as an absolute URL to an external site. An attacker could craft a link that bypasses the external URL warning page.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 6 days
- Paid in 7 days
- Disclosed after 7 days
A specially crafted URL can bypass the external URL warning page.
Details
A url that starts with two forward slashes is treated as absolute by browsers. The markdown renderer refuses to render links that start like this, however it can be tricked by using a control character e.g.
"test"
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 markdown renderer's URL validation did not account for control characters that browsers ignore when interpreting URLs.
What the attacker needed
Ability to have a crafted markdown link rendered
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 you click a link on a website, the site may show a warning if the link goes to another site. This report shows that by putting a special invisible character in the link, an attacker can make the warning not appear, so you might visit a malicious site without warning.
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.