using long url address in permission prompt truncated lead to spoof
A long URL in a browser permission prompt was truncated, hiding the true domain and showing a spoofed Google-looking address. An attacker could use this to trick a user into granting camera and microphone access to a malicious site.
- Fixed in 10 days
- Paid in 15 days
- Disclosed after 10 days
Created attachment 9426407
domainlong.png
when using long url address, url in permission prompt is truncated leading to spoof
steps to reproduce
1. open https://xxxxxxxxxxxxxxxxxxx.login.secures.documents.drives.google.com.aogarantiza.com/chromium/pepc-bounds.html
2. open console do :
navigator.mediaDevices.getUserMedia(
{audio: true, video: true}).then()
3. the url shown in permission prompt: https://xxxxxxxxxxxxxxxxxxx.login.secures.documents.drives.google.com not https://xxxxxxxxxxxxxxxxxxx.login.secures.documents.drives.google.com.aogarantiza.com
OS: windows 10
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 permission prompt truncated the displayed origin without ensuring the visible portion still uniquely identified the site.
Impact
A user could be tricked into granting camera and microphone access to a site that appears to be a trusted Google domain.
What the attacker needed
Victim visits a malicious page; victim grants permission
How it was found
- Open a page at a long URL that ends with an attacker-controlled domain.
- Run a script in the console that requests camera and microphone access.
- Observe that the permission prompt shows a truncated URL ending at a trusted-looking domain, not the full attacker domain.
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 website asks for permission to use your camera or microphone, the browser shows the site's address so you can check it is legitimate. Here, a very long address was cut off, so the part that revealed the real owner was hidden. That could let a bad site pretend to be a trusted one and get access to your devices.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.