Cloudanix VulnDB

CVE-2024-8372

Medium · 4.3

AngularJS allows attackers to bypass common image source restrictions

CVSS

4.3

EPSS

0.6%

Published

Sep 9, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in an outdated web framework lets attackers trick websites into showing fake or harmful images and content to users.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Web Framework
Class
Improper Input Validation
Remediation
No Fix Yet
Effort
Other
Patch risk
Other

What it actually does

Improper sanitization of the srcset attribute value allows bypassing image source restrictions, enabling content spoofing in affected AngularJS applications.

Why it matters to the business

Attackers can inject misleading or malicious content into web applications, eroding user trust and potentially facilitating phishing or misinformation without requiring updates due to end-of-life status.

How an attack unfolds

An attacker identifies a vulnerable AngularJS application and supplies a crafted srcset attribute value that evades sanitization checks, resulting in the display of unauthorized content sources.

How to fix it

Migrate away from AngularJS to a supported framework such as Angular as the project is end-of-life and receives no patches.

How to confirm the fix worked

Audit application dependencies for AngularJS versions 1.3.0-rc.4 or later and review code handling srcset attributes for sanitization logic.

Typical attack path

  1. Identify web application using vulnerable AngularJS version
  2. Craft malicious srcset attribute payload
  3. Inject payload into input that populates srcset
  4. Trigger rendering to bypass restrictions and spoof content

How to detect it

Review web application logs for unusual srcset attribute values or unexpected image sources; inspect client-side code for attribute handling.

What your security team should do

  • Prioritize migration from AngularJS due to lack of support
  • Implement additional input sanitization layers if migration is delayed
  • Monitor for content spoofing attempts in application logs

The record

Improper sanitization of the value of the `[srcset]` attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing . This issue affects AngularJS versions 1.3.0-rc.4 and greater. Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .

Affected packages

Ecosystem Package Introduced Fixed
npm angular 1.3.0-rc.4 No fix
Chainguard solr 0 9.8.1-r0
Chainguard solr-oci-compat 0 9.8.1-r0
Debian:11 angular.js 0 No fix
Debian:12 angular.js 0 No fix
Debian:13 angular.js 0 No fix
Ubuntu:16.04:LTS angular.js 0 No fix
Ubuntu:18.04:LTS angular.js 0 No fix
Ubuntu:20.04:LTS angular.js 0 No fix
Ubuntu:22.04:LTS angular.js 0 No fix
Ubuntu:22.04:LTS angular.js 0 1.8.2-2ubuntu0.1
Ubuntu:24.04:LTS angular.js 0 No fix
Ubuntu:24.04:LTS angular.js 0 1.8.3-1ubuntu0.24.04.1
Ubuntu:24.10 angular.js 0 No fix
Ubuntu:25.04 angular.js 0 No fix
Ubuntu:25.10 angular.js 0 No fix
Ubuntu:Pro:16.04:LTS angular.js 0 No fix
Ubuntu:Pro:18.04:LTS angular.js 0 No fix
Ubuntu:Pro:18.04:LTS angular.js 0 1.5.10-1ubuntu0.1~esm1
Ubuntu:Pro:20.04:LTS angular.js 0 No fix
Ubuntu:Pro:20.04:LTS angular.js 0 1.7.9-1ubuntu0.1~esm1
Wolfi solr 0 9.8.1-r0
Wolfi solr-oci-compat 0 9.8.1-r0

Related vulnerabilities