Lucene search

K
githubGitHub Advisory DatabaseGHSA-P6CP-6R35-32MH
HistoryDec 16, 2023 - 12:03 a.m.

Solr search discloses password hashes of all users

2023-12-1600:03:54
CWE-200
CWE-312
GitHub Advisory Database
github.com
10
solr search
password hashes
xwiki
plain text
vulnerability
api keys
patch
ghsa-2grh-gr37-2283
workaround
cve-2022-41933

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

AI Score

7

Confidence

High

EPSS

0.361

Percentile

97.2%

Impact

The Solr-based search in XWiki discloses the password hashes of all users to anyone with view right on the respective user profiles. By default, all user profiles are public. To reproduce, it is sufficient to search for propertyvalue:?* AND reference:*.password and then deselect the “Document” property under “Result type” in the “Refine your search” widget at the right of the search results. If this displays any passwords or password hashes, the installation is vulnerable.

By default, passwords in XWiki are salted and hashed with SHA-512. On XWiki versions affected by CVE-2022-41933, passwords are stored in plain text if they have been set using the password reset feature. This might affect XWiki installations that are using an external authentication mechanism such that passwords aren’t stored in the wiki.

This vulnerability also affects any configurations used by extensions that contain passwords like API keys that are viewable for the attacker. Normally, such passwords aren’t accessible but this vulnerability would disclose them as plain text.

Patches

This has been patched in XWiki 14.10.15, 15.5.2 and 15.7RC1. This vulnerability has been patched as part of patching GHSA-2grh-gr37-2283, the part of the fix that changes the indexing of single properties to use the same code as the main document for getting the property’s value fixes this vulnerability.

Workarounds

We’re not aware of any workarounds apart from upgrading to a fixed version.

References

Affected configurations

Vulners
Node
org.xwiki.platformxwiki-platform-search-solr-apiRange15.6-rc-115.7-rc-1
OR
org.xwiki.platformxwiki-platform-search-solr-apiRange15.0-rc-115.5.2
OR
org.xwiki.platformxwiki-platform-search-solr-apiRange7.2-milestone-214.10.15
VendorProductVersionCPE
org.xwiki.platformxwiki-platform-search-solr-api*cpe:2.3:a:org.xwiki.platform:xwiki-platform-search-solr-api:*:*:*:*:*:*:*:*

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

AI Score

7

Confidence

High

EPSS

0.361

Percentile

97.2%