Cloudanix VulnDB

CVE-2022-40956

Medium · 6.1

CVSS

6.1

EPSS

0.9%

Published

Dec 22, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in certain older web browsers could let attackers quietly change where a webpage loads its files from, weakening security protections and increasing the chance of malicious code running.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Data Tampering
Component
Application
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability permits an attacker-injected HTML base element to override the base-uri directive in a page's Content-Security-Policy, causing subsequent requests to resolve against the attacker's supplied base URL instead of the policy-defined origin.

Why it matters to the business

Organizations relying on CSP to protect web applications delivered to users of the affected browsers face elevated risk of cross-site scripting and data leakage, potentially resulting in compromised user sessions or unauthorized actions within those applications.

How an attack unfolds

An attacker first delivers HTML content containing a malicious base element to a victim (via stored or reflected injection), after which the browser ignores the CSP base-uri restriction and resolves subresource or navigation URLs against the attacker's domain, enabling loading of attacker-controlled scripts or exfiltration endpoints.

How to fix it

Upgrade Mozilla Firefox to version 105 or later, Firefox ESR to 102.3 or later, and Thunderbird to 102.3 or later; enforce strict CSP base-uri directives in all web applications and consider additional client-side protections such as Subresource Integrity where feasible.

How to confirm the fix worked

Verify deployed browser versions meet or exceed the fixed releases; test affected pages with injected base elements while monitoring that CSP base-uri continues to block unauthorized base resolutions.

Typical attack path

  1. Deliver HTML containing an injected base element to a victim browser
  2. Trigger page load or navigation that respects the injected base
  3. Bypass CSP base-uri enforcement for subsequent requests
  4. Load malicious scripts or exfiltrate data from attacker-controlled origin

How to detect it

Review web server or proxy logs for unexpected base URL origins in requests originating from affected browser user-agents; inspect client-side CSP violation reports for base-uri bypass patterns; correlate with browser version telemetry to identify exposure windows.

What your security team should do

  • Prioritize browser updates across all managed endpoints given the widespread use of affected Mozilla products
  • Audit web applications for CSP implementations that rely on base-uri and strengthen them with additional directives
  • Monitor EPSS and exploit maturity indicators for any future increase in weaponization

The record

When injecting an HTML base element, some requests would ignore the CSP's base-uri settings and accept the injected element's base instead. This vulnerability affects Firefox ESR < 102.3, Thunderbird < 102.3, and Firefox < 105.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 firefox 0 102.3.0-6.el8_6.alma
AlmaLinux:8 thunderbird 0 102.3.0-3.el8_6.alma
AlmaLinux:9 firefox 0 102.3.0-6.el9_0.alma
AlmaLinux:9 thunderbird 0 102.3.0-3.el9_0.alma
Debian:10 firefox-esr 0 102.3.0esr-1~deb10u2
Debian:10 thunderbird 0 1:102.3.0-1~deb10u1
Debian:11 firefox-esr 0 102.3.0esr-1~deb11u1
Debian:11 thunderbird 0 1:102.3.0-1~deb11u1
Debian:12 firefox-esr 0 102.3.0esr-1
Debian:12 thunderbird 0 1:102.3.0-1
Debian:13 firefox-esr 0 102.3.0esr-1
Debian:13 thunderbird 0 1:102.3.0-1
Mageia:8 firefox 0 102.3.0-1.mga8
Mageia:8 firefox-l10n 0 102.3.0-1.mga8
Mageia:8 nspr 0 4.35-1.mga8
Mageia:8 nss 0 3.83.0-1.mga8
Mageia:8 rootcerts 0 20220907.00-1.mga8
Mageia:8 thunderbird 0 102.3.0-1.mga8
Mageia:8 thunderbird-l10n 0 102.3.0-1.mga8
Red Hat:enterprise_linux:7::client firefox 0 0:102.3.0-6.el7_9
Red Hat:enterprise_linux:7::client firefox-debuginfo 0 0:102.3.0-6.el7_9
Red Hat:enterprise_linux:7::client thunderbird 0 0:102.3.0-3.el7_9
Red Hat:enterprise_linux:7::client thunderbird-debuginfo 0 0:102.3.0-3.el7_9
Red Hat:enterprise_linux:7::server firefox 0 0:102.3.0-6.el7_9
Red Hat:enterprise_linux:7::server firefox-debuginfo 0 0:102.3.0-6.el7_9
Red Hat:enterprise_linux:7::server thunderbird 0 0:102.3.0-3.el7_9
Red Hat:enterprise_linux:7::server thunderbird-debuginfo 0 0:102.3.0-3.el7_9
Red Hat:enterprise_linux:7::workstation firefox 0 0:102.3.0-6.el7_9
Red Hat:enterprise_linux:7::workstation firefox-debuginfo 0 0:102.3.0-6.el7_9
Red Hat:enterprise_linux:7::workstation thunderbird 0 0:102.3.0-3.el7_9
Red Hat:enterprise_linux:7::workstation thunderbird-debuginfo 0 0:102.3.0-3.el7_9
Red Hat:enterprise_linux:8::appstream firefox 0 0:102.3.0-6.el8_6
Red Hat:enterprise_linux:8::appstream firefox-debuginfo 0 0:102.3.0-6.el8_6
Red Hat:enterprise_linux:8::appstream firefox-debugsource 0 0:102.3.0-6.el8_6
Red Hat:enterprise_linux:8::appstream thunderbird 0 0:102.3.0-3.el8_6
Red Hat:enterprise_linux:8::appstream thunderbird-debuginfo 0 0:102.3.0-3.el8_6
Red Hat:enterprise_linux:8::appstream thunderbird-debugsource 0 0:102.3.0-3.el8_6
Red Hat:enterprise_linux:9::appstream firefox 0 0:102.3.0-6.el9_0
Red Hat:enterprise_linux:9::appstream firefox-debuginfo 0 0:102.3.0-6.el9_0
Red Hat:enterprise_linux:9::appstream firefox-debugsource 0 0:102.3.0-6.el9_0
Red Hat:enterprise_linux:9::appstream thunderbird 0 0:102.3.0-3.el9_0
Red Hat:enterprise_linux:9::appstream thunderbird-debuginfo 0 0:102.3.0-3.el9_0
Red Hat:enterprise_linux:9::appstream thunderbird-debugsource 0 0:102.3.0-3.el9_0
Red Hat:rhel_e4s:8.1::appstream firefox 0 0:102.3.0-6.el8_1
Red Hat:rhel_e4s:8.1::appstream firefox-debuginfo 0 0:102.3.0-6.el8_1
Red Hat:rhel_e4s:8.1::appstream firefox-debugsource 0 0:102.3.0-6.el8_1
Red Hat:rhel_e4s:8.1::appstream thunderbird 0 0:102.3.0-3.el8_1
Red Hat:rhel_e4s:8.1::appstream thunderbird-debuginfo 0 0:102.3.0-3.el8_1
Red Hat:rhel_e4s:8.1::appstream thunderbird-debugsource 0 0:102.3.0-3.el8_1
Red Hat:rhel_eus:8.2::appstream firefox 0 0:102.3.0-6.el8_2
Red Hat:rhel_eus:8.2::appstream firefox-debuginfo 0 0:102.3.0-6.el8_2
Red Hat:rhel_eus:8.2::appstream firefox-debugsource 0 0:102.3.0-6.el8_2
Red Hat:rhel_eus:8.2::appstream thunderbird 0 0:102.3.0-3.el8_2
Red Hat:rhel_eus:8.2::appstream thunderbird-debuginfo 0 0:102.3.0-3.el8_2
Red Hat:rhel_eus:8.2::appstream thunderbird-debugsource 0 0:102.3.0-3.el8_2
Red Hat:rhel_eus:8.4::appstream firefox 0 0:102.3.0-6.el8_4
Red Hat:rhel_eus:8.4::appstream firefox-debuginfo 0 0:102.3.0-6.el8_4
Red Hat:rhel_eus:8.4::appstream firefox-debugsource 0 0:102.3.0-6.el8_4
Red Hat:rhel_eus:8.4::appstream thunderbird 0 0:102.3.0-3.el8_4
Red Hat:rhel_eus:8.4::appstream thunderbird-debuginfo 0 0:102.3.0-3.el8_4
Red Hat:rhel_eus:8.4::appstream thunderbird-debugsource 0 0:102.3.0-3.el8_4
Rocky Linux:8 firefox 0 0:102.3.0-6.el8_6
Rocky Linux:8 thunderbird 0 0:102.3.0-3.el8_6
SUSE:Enterprise Storage 6 MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Enterprise Storage 7 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Enterprise Storage 7 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise Module for Package Hub 15 SP3 MozillaThunderbird 0 102.4.0-150200.8.85.1
SUSE:Linux Enterprise Module for Package Hub 15 SP4 MozillaThunderbird 0 102.4.0-150200.8.85.1
SUSE:Linux Enterprise Server 12 SP2-BCL MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Server 12 SP3-BCL MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Server 12 SP4-LTSS MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Server 12 SP5 MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Server 15 SP1-BCL MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise Server 15 SP1-LTSS MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise Server 15 SP2-BCL MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise Server 15 SP2-BCL MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise Server 15 SP2-LTSS MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise Server 15 SP2-LTSS MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise Server 15-LTSS MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Server for SAP Applications 15 MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 MozillaFirefox 0 102.3.0-150000.150.59.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 MozillaFirefox 0 102.3.0-112.133.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 MozillaThunderbird 0 102.4.0-150200.8.85.1
SUSE:Linux Enterprise Workstation Extension 15 SP4 MozillaThunderbird 0 102.4.0-150200.8.85.1
SUSE:Manager Proxy 4.1 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Manager Proxy 4.1 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Manager Retail Branch Server 4.1 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Manager Retail Branch Server 4.1 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:Manager Server 4.1 MozillaFirefox 0 102.3.0-150200.152.61.1
SUSE:Manager Server 4.1 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
SUSE:OpenStack Cloud 9 MozillaFirefox 0 102.3.0-112.133.1
SUSE:OpenStack Cloud Crowbar 9 MozillaFirefox 0 102.3.0-112.133.1
Ubuntu:18.04:LTS firefox 0 105.0+build2-0ubuntu0.18.04.1
Ubuntu:18.04:LTS thunderbird 0 1:102.4.2+build2-0ubuntu0.18.04.1
Ubuntu:20.04:LTS firefox 0 105.0+build2-0ubuntu0.20.04.1
Ubuntu:20.04:LTS thunderbird 0 1:102.4.2+build2-0ubuntu0.20.04.1
Ubuntu:22.04:LTS thunderbird 0 1:102.4.2+build2-0ubuntu0.22.04.1
openSUSE:Leap 15.3 MozillaFirefox 0 102.3.0-150200.152.61.1
openSUSE:Leap 15.3 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
openSUSE:Leap 15.3 MozillaThunderbird 0 102.4.0-150200.8.85.1
openSUSE:Leap 15.4 MozillaFirefox 0 102.3.0-150200.152.61.1
openSUSE:Leap 15.4 MozillaFirefox-branding-SLE 0 102-150200.9.10.1
openSUSE:Leap 15.4 MozillaThunderbird 0 102.4.0-150200.8.85.1
openSUSE:Tumbleweed MozillaFirefox 0 105.0.3-1.1
openSUSE:Tumbleweed MozillaThunderbird 0 102.3.0-1.1
openSUSE:Tumbleweed firefox-esr 0 128.5.1-1.1

Related vulnerabilities