Camera, Microphone, Geolocation etc permission takeover of trusted Top Origin Site through <embed> content, with no user interaction on Windows Firefox Nightly
A cross-origin page embedded via an <embed> element could inherit the camera and microphone permissions granted to the trusted top-level origin, letting the embedded attacker page control the user's camera without any further interaction. An attacker could therefore spy on the user through a legitimate site that had already been granted device access.
- Fixed in 15 days
- Paid in 16 days
- Disclosed after 15 days
Created attachment 9428044
camera_pwning.click_legitimate_webcam_site.mp4
Imagine user visiting trusted legitimate webcam sites when all of a sudden your webcam is hijacked with full control allowing to spy on you.
Steps to reproduce:
1. Go to https://legitimatewebcamsite.com/webcam and allow Camera access from legitimate webcam site.
2. Go to https://legitimatewebcamsite.com/Evil_Webcam to confirm that Cross-Origin Evil site https://pwning.click/access_camera has a full camera control.
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
Impact
An embedded cross-origin page could gain camera control without user interaction, allowing spying on the user; the report is specific to Windows Firefox Nightly.
What the attacker needed
Windows Firefox Nightly; victim grants camera to a legitimate site; victim visits a page with embedded content
How it was found
- Visit the legitimate webcam site's webcam page and grant camera access.
- Visit the site's page containing the embedded cross-origin content.
- Observe that the embedded cross-origin page has full camera control.
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 allow a website to use your camera, the browser normally remembers that permission for that site only. This report says that in a particular Firefox build, a different site loaded inside the trusted page through an <embed> tag could also use the camera, even though the user never approved it. That would let someone watch through the webcam without the user noticing.
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.