.. / CVE-2023-48241

Exploit for XWiki < 4.10.15 - Information Disclosure (CVE-2023-48241)

Description:

The Solr-based search suggestion provider that also duplicates as generic JavaScript API for search results in XWiki exposes the content of all documents of all wikis to anybody who has access to it, by default it is public. This exposes all information stored in the wiki (but not some protected information like password hashes). While there is a right check normally, the right check can be circumvented by explicitly requesting fields from Solr that don’t include the data for the right check. This can be reproduced by opening /xwiki/bin/get/XWiki/SuggestSolrService?outputSyntax=plain&media=json&nb=1000&query=q%3D*%3A*%0Aq.op%3DAND%0Afq%3Dtype%3ADOCUMENT%0Afl%3Dtitle_%2C+reference%2C+links%2C+doccontentraw_%2C+objcontent__&input=+ where is the URL of the XWiki installation. If this displays any results, the wiki is vulnerable.

Nuclei Template

View the template here CVE-2023-48241.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2023/CVE-2023-48241.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/CVE-2023-48241
https://jira.xwiki.org/browse/XWIKI-21138