CVE-2023-29547
Medium · 6.5CVSS
6.5
EPSS
0.5%
Published
Jun 2, 2023
CISA due date
—
Cloudanix analysis
Older versions of Firefox could let a website trick the browser into replacing a secure cookie with a non-secure one, potentially letting attackers interfere with login or session security on other sites.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits creation of an insecure cookie for a domain that already holds a secure cookie in the browser jar, bypassing the expected silent failure and resulting in desynchronization where reads from the secure cookie produce inconsistent or unexpected results.
Why it matters to the business
Users on outdated browser versions may experience disrupted session handling or authentication flows on sites relying on secure cookies, increasing risk of unauthorized access or data exposure without requiring direct compromise of servers.
How an attack unfolds
An attacker hosts a malicious site that attempts to set an insecure cookie for a target domain known to use secure cookies; when a user on an affected Firefox version visits the site, the insecure cookie is accepted instead of failing, desynchronizing cookie state and allowing the attacker to exploit resulting inconsistencies in cookie-based logic.
How to fix it
Upgrade all instances of Mozilla Firefox, Firefox ESR, and Focus for Android to version 112 or later to enforce proper secure cookie handling.
How to confirm the fix worked
Confirm browser version is 112 or higher; test by attempting to set an insecure cookie for a domain with an existing secure cookie and verify the operation silently fails as expected.
Typical attack path
- Identify target domain using secure cookies for authentication or sessions
- Host attacker-controlled site that issues Set-Cookie for insecure variant of the same domain
- Lure user on vulnerable Firefox version to visit the site via phishing or watering hole
- Insecure cookie is stored, desynchronizing expected secure cookie behavior
- Leverage resulting cookie state mismatch to bypass authorization checks
How to detect it
Review browser cookie storage and network logs for unexpected insecure cookie entries on domains that should only use secure variants; correlate with user navigation to untrusted sites around the time of suspected issues.
What your security team should do
- Prioritize immediate upgrade of all Firefox-based browsers to 112+ across the environment
- Review web applications for reliance on secure cookie flags and implement server-side cookie validation as defense-in-depth
- Monitor vulnerability disclosure feeds for any new exploitation reports given the authorization bypass nature
The record
When a secure cookie existed in the Firefox cookie jar an insecure cookie for the same domain could have been created, when it should have silently failed. This could have led to a desynchronization in expected results when reading from the secure cookie. This vulnerability affects Firefox for Android < 112, Firefox < 112, and Focus for Android < 112.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 112.0+build2-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 112.0+build2-0ubuntu0.20.04.1 |
| 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:22.04:LTS | mozjs91 | 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 | 112.0.1-1.1 |
| 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