CVE-2023-50719: Xwiki platform search solr api Solr Search Discloses Password Hashes Vulnerability

HIGH
Advisory Identifier: GHSA-p6cp-6r35-32mh
CVSS 7.5
CWE-312 CWE-200
Published
Advisory Summary

CVE-2023-50719 is a HIGH (CVSS 7.5) solr search discloses password hashes vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Xwiki platform search solr api libraries in the Maven ecosystem. The issue involves solr search discloses password hashes of all users. Remediation is available by upgrading affected packages to version 14.10.15, 15.5.2, 15.7-rc-1.

CVE-2023-50719 at a Glance

CVE Identifier CVE-2023-50719
GHSA Identifier GHSA-p6cp-6r35-32mh
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Xwiki platform search solr api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-50719

To remediate this vulnerability, upgrade all affected Xwiki platform search solr api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.xwiki.platform:xwiki-platform-search-solr-api fixed: 14.10.15
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-search-solr-api</artifactId>
    <version>14.10.15</version>
</dependency>
org.xwiki.platform:xwiki-platform-search-solr-api fixed: 15.5.2
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-search-solr-api</artifactId>
    <version>15.5.2</version>
</dependency>
org.xwiki.platform:xwiki-platform-search-solr-api fixed: 15.7-rc-1
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-search-solr-api</artifactId>
    <version>15.7-rc-1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.platform

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-50719, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.platform

Analyze the terminal output to locate any version of Xwiki platform search solr api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.10.15), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Xwiki platform search solr api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q2hm-2h45-v5g3), 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](https://github.com/xwiki/xwiki-platform/security/advisories/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 * https://github.com/xwiki/xwiki-platform/commit/3e5272f2ef0dff06a8f4db10afd1949b2f9e6eea * https://jira.xwiki.org/browse/XWIKI-21208

CVE-2023-50719 Affected Xwiki platform search solr api Versions

3 component(s)
Fixed Versions:
14.10.1515.5.215.7-rc-1
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-search-solr-api
Maven
≥ 7.2-milestone-2
< 14.10.15
14.10.15
org.xwiki.platform:xwiki-platform-search-solr-api
Maven
≥ 15.0-rc-1
< 15.5.2
15.5.2
org.xwiki.platform:xwiki-platform-search-solr-api
Maven
≥ 15.6-rc-1
< 15.7-rc-1
15.7-rc-1

References

Frequently Asked Questions

What is CVE-2023-50719?
CVE-2023-50719 is a security vulnerability in Xwiki platform search solr api involving Solr search discloses password hashes of all users under CWE-312: Cleartext Storage of Sensitive Information.
Which Xwiki platform search solr api versions are affected?
Affected versions include releases prior to 14.10.15, 15.5.2, 15.7-rc-1 across affected packages: org.xwiki.platform:xwiki-platform-search-solr-api.
What version fixes CVE-2023-50719?
Upgrading to 14.10.15, 15.5.2, 15.7-rc-1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-search-solr-api affected?
Yes, org.xwiki.platform:xwiki-platform-search-solr-api is affected in releases prior to 14.10.15, 15.5.2, 15.7-rc-1. Upgrade your dependency to 14.10.15, 15.5.2, 15.7-rc-1 or later.
What is the CVSS score of CVE-2023-50719?
CVE-2023-50719 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-50719?
CVE-2023-50719 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Maven dependencies for CVE-2023-50719?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p6cp-6r35-32mh",
  "modified" : "2023-12-16T00:03:54Z",
  "published" : "2023-12-16T00:03:54Z",
  "aliases" : [ "CVE-2023-50719" ],
  "summary" : "Solr search discloses password hashes of all users",
  "details" : "### Impact\nThe 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.\n\nBy default, passwords in XWiki are salted and hashed with SHA-512. On XWiki versions affected by [CVE-2022-41933](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q2hm-2h45-v5g3), 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.\n\nThis 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.\n\n### Patches\nThis 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](https://github.com/xwiki/xwiki-platform/security/advisories/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.\n\n### Workarounds\nWe're not aware of any workarounds apart from upgrading to a fixed version.\n\n### References\n* https://github.com/xwiki/xwiki-platform/commit/3e5272f2ef0dff06a8f4db10afd1949b2f9e6eea\n* https://jira.xwiki.org/browse/XWIKI-21208",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-search-solr-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.2-milestone-2"
      }, {
        "fixed" : "14.10.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-search-solr-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0-rc-1"
      }, {
        "fixed" : "15.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-search-solr-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.6-rc-1"
      }, {
        "fixed" : "15.7-rc-1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p6cp-6r35-32mh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50719"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/3e5272f2ef0dff06a8f4db10afd1949b2f9e6eea"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-platform"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-21208"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-312" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-16T00:03:54Z",
    "nvd_published_at" : "2023-12-15T19:15:09Z"
  }
}