PT-2022-24833 · Netlify · Netlify-Ipx

Dustincrogers

·

Published

2022-09-21

·

Updated

2022-09-27

·

CVE-2022-39239

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions netlify-ipx versions prior to 1.2.3
Description The issue allows an attacker to bypass the source image domain allowlist by sending specially crafted headers, causing the handler to load and return arbitrary images. Because the response is cached globally, this image will then be served to visitors without requiring those headers to be set. XSS can be achieved by requesting a malicious SVG with embedded scripts, which would then be served from the site domain. Note that this does not apply to images loaded in <img> tags, as scripts do not execute in this context. The image URL can be set in the header independently of the request URL, meaning any site images that have not previously been cached can have their cache poisoned.
Recommendations For versions prior to 1.2.3, update to version 1.2.3 to resolve the issue. As a temporary workaround, cached content can be cleared by re-deploying the site.

Exploit

Fix

SSRF

XSS

Weakness Enumeration

Related Identifiers

CVE-2022-39239
GHSA-9JJV-524M-JM98

Affected Products

Netlify-Ipx