CVE-2021-29959
Medium · 4.3CVSS
4.3
EPSS
0.8%
Published
Jun 24, 2021
CISA due date
—
Cloudanix analysis
A website could turn a user's camera back on without asking again after the user believed they had turned it off.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Authorization bypass allows a site with prior mic+camera permission to silently re-enable the camera after the user disables camera sharing, provided the microphone stream remains active.
Why it matters to the business
Users on affected systems face unexpected camera access by websites, increasing privacy risk and potential regulatory exposure; the issue affects widely deployed software with millions of downstream dependents and has remained unpatched in some distributions for years.
How an attack unfolds
A malicious site first obtains microphone and camera permission, keeps the microphone stream open, then disables camera sharing; while the mic is active the site re-enables the camera without triggering an additional permission prompt.
How to fix it
Upgrade trafficserver on Debian 11 and 12 to 8.1.1+ds-1.1 or later; for Firefox users upgrade to version 89 or newer. Apply vendor patches promptly given the 1931-day exposure window and stable but non-zero EPSS.
How to confirm the fix worked
Confirm the installed package version matches or exceeds the fixed release; review browser permission settings and test that camera access prompts appear after explicit disable while a microphone stream is active.
Typical attack path
- Obtain initial user consent for microphone and camera
- Maintain an active microphone stream
- Trigger the camera-disable UI action
- Re-request camera access while the microphone remains live
- Capture video without further user interaction or prompt
How to detect it
Review browser permission and media-stream logs for unexpected camera reactivation events while microphone streams remain open; correlate with web-request logs from sites previously granted both permissions.
What your security team should do
- Prioritize upgrade of all affected trafficserver and Firefox instances to the listed fixed versions
- Audit browser permission grants across the environment
- Monitor EPSS and KEV status for any future increase in exploit activity
The record
When a user has already allowed a website to access microphone and camera, disabling camera sharing would not fully prevent the website from re-enabling it without an additional prompt. This was only possible if the website kept recording with the microphone until re-enabling the camera. This vulnerability affects Firefox < 89.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 89.0+build2-0ubuntu0.18.04.2 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 89.0+build2-0ubuntu0.20.04.2 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 92.0-1.2 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2023-25736 An invalid downcast from `nsHTMLDocument` to `nsIContent` could have lead to undefined… Also affects firefox
- CVE-2023-25733 The return value from `gfx::SourceSurfaceSkia::Map()` wasn't being verified which could… Also affects firefox
- CVE-2023-32210 Documents were incorrectly assuming an ordering of principal objects when ensuring we… Also affects firefox
- CVE-2023-32216 Memory safety bugs present in Firefox 112. Also affects firefox
- CVE-2023-32209 A maliciously crafted favicon could have led to an out of memory crash. Also affects firefox
- CVE-2023-32208 Service workers could reveal script base URL due to dynamic `import()`. Also affects firefox
- CVE-2023-29551 Memory safety bugs present in Firefox 111. Also affects firefox
- CVE-2023-32207 A missing delay in popup notifications could have made it possible for an attacker to… Also affects firefox