Skip to content
Access control Disclosed report Beginner

Fake URL + Additional vectors for homograph attack

A markdown link can display one URL while pointing to a different destination, because browsers treat text before an '@' in the authority as user information and navigate to the host after it. An attacker could craft a link that looks like a trusted site but sends the victim elsewhere, and the report also lists extra ways to disguise a lookalike domain.

abze Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 5 days
  • Paid in 5 days
  • Disclosed after 6 days

Hello!

I would like to report about a new issue based on "@" character in URL. It shows user real URL but when he clicks "Proceed", he is redirected to another website.

For example, it seems as normal HackerOne URL: [https://hackerone.com/bugs?team_id=0&sort_type=latest_activity&sort_direction=descending&state=open&limit=25&page=1&substates%5B%5D=new&substates%5B%5D=triaged&substates%5B%5D=resolved&substates%5B%5D=wont-fix&substates%5B%5D=not-applicable&substates%5B%5D=duplicate&substates%5B%5D=needs-more-info&substates%5B%5D=spam&text_query=&report_id=59426](https://hackerone.com ∕ bugs?team_id=0&sort_type=latest_activity&sort_direction=descending&state=open&limit=25&page=1&substates%5B%5D=new&substates%5B%5D=triaged&substates%5B%5D=resolved&substates%5B%5D=wont-fix&substates%5B%5D=not-applicable&substates%5B%5D=duplicate&substates%5B%5D=needs-more-info&substates%5B%5D=spam&text_query=&[email protected])

Markdown: [https://hackerone.com/bugs?team_id=0&sort_type=latest_activity&sort_direction=descending&state=open&limit=25&page=1&substates%5B%5D=new&substates%5B%5D=triaged&substates%5B%5D=resolved&substates%5B%5D=wont-fix&substates%5B%5D=not-applicable&substates%5B%5D=duplicate&substates%5B%5D=needs-more-info&substates%5B%5D=spam&text_query=&report_id=59426](https://hackerone.com ∕ bugs?team_id=0&sort_type=latest_activity&sort_direction=descending&state=open&limit=25&page=1&substates%5B%5D=new&substates%5B%5D=triaged&substates%5B%5D=resolved&substates%5B%5D=wont-fix&substates%5B%5D=not-applicable&substates%5B%5D=duplicate&substates%5B%5D=needs-more-info&substates%5B%5D=spam&text_query=&[email protected])

But when You click "Proceed", You are getting redirected to http://google.com/home

Here is shorter variant of this vulnerability: [http://google.com/home](http://google.com ⁄ [email protected]) Markdown: [http://google.com/home](http://google.com ⁄ [email protected])

It is because modern browsers interpret this scheme like this "http://authorization_data@website", so, when You click on URL, they get You redirected to "http://website".

Also, additionally to report #58612, here are new vectors that still allow to reproduce homograph attack:

http://google.com Markdown: [http://google.com](http:\\/gоogle.com) http://google.com Markdown: [http://google.com](http:/\\/gоogle.com) http://google.com Markdown: [http://google.com](http:gоogle%2Ecom)

Thanks!

The original report as published on HackerOne, by abze. 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 link text and the actual link target are independent, and browsers silently drop the user-information portion of a URL, so the displayed address does not match the destination.

Impact

A victim could be sent to an attacker-controlled site while the link appears to point at a trusted domain, which may aid phishing; the report does not demonstrate credential theft or any other concrete harm.

What the attacker needed

Victim clicks a crafted link; link rendered as clickable markdown

How it was found

  1. Create a markdown link whose visible text is a trusted URL.
  2. Set the link target so the trusted-looking text sits before an '@' and the real host follows it.
  3. Open the rendered link and click Proceed.
  4. Observe the browser navigating to the host after the '@' instead of the displayed one.

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.

A web address can contain a username part before an '@' sign, and browsers ignore that part when deciding which site to visit. So a link can show a familiar address in its text but actually take you to a different site. This is used to trick people into visiting fake pages that look trustworthy.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by abze

View all

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

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.