CVE-2021-32729: Xwiki platform security authentication script A User Without PR Can Vulnerability

LOW
Advisory Identifier: GHSA-m738-3rc4-5xv3
CVSS 2.0
CWE-732 CWE-287 CWE-693
Published
Advisory Summary

CVE-2021-32729 is a LOW (CVSS 2.0) a user without pr can vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Xwiki platform security authentication script libraries in the Maven ecosystem. The issue involves a user without pr can reset user authentication failures information. Remediation is available by upgrading affected packages to version 12.6.8, 12.10.4.

CVE-2021-32729 at a Glance

CVE Identifier CVE-2021-32729
GHSA Identifier GHSA-m738-3rc4-5xv3
Severity LOW
CVSS v3.1 Base Score 2.0
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Xwiki platform security authentication script
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 2.0

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

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

How to Fix CVE-2021-32729

To remediate this vulnerability, upgrade all affected Xwiki platform security authentication script 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-security-authentication-script fixed: 12.6.8
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-security-authentication-script</artifactId>
    <version>12.6.8</version>
</dependency>
org.xwiki.platform:xwiki-platform-security-authentication-script fixed: 12.10.4
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-security-authentication-script</artifactId>
    <version>12.10.4</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-2021-32729, 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 security authentication script in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.6.8), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Xwiki platform security authentication script, 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 script service method used to reset the authentication failures record can be executed by any user with Script rights and does not require Programming rights as it should have. Note that being able to reset the authentication failure record mean that an attacker with script right might use it to try performing a bruteforce attack since she'd been able to virtually deactivate the mechanism introduced to mitigate those attacks. ### Patches The problem has been patched in version 12.6.8, 12.10.4 and 13.0. ### Workarounds There's no workaround besides upgrading and being careful on which user should have Script right access. Note that any bruteforce attack on the authentication should be visible in the logs since the authentication failures are logged. ### References https://jira.xwiki.org/browse/XWIKI-18276 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira](http://jira.xwiki.org) * Email us at [the security mailing-list](mailto:security@xwiki.org)

CVE-2021-32729 Affected Xwiki platform security authentication script Versions

2 component(s)
Fixed Versions:
12.6.812.10.4
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-security-authentication-script
Maven
≥ 11.6
< 12.6.8
12.6.8
org.xwiki.platform:xwiki-platform-security-authentication-script
Maven
≥ 12.7
< 12.10.4
12.10.4

References

Frequently Asked Questions

What is CVE-2021-32729?
CVE-2021-32729 is a security vulnerability in Xwiki platform security authentication script involving A user without PR can reset user authentication failures information under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Xwiki platform security authentication script versions are affected?
Affected versions include releases prior to 12.6.8, 12.10.4 across affected packages: org.xwiki.platform:xwiki-platform-security-authentication-script.
What version fixes CVE-2021-32729?
Upgrading to 12.6.8, 12.10.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-security-authentication-script affected?
Yes, org.xwiki.platform:xwiki-platform-security-authentication-script is affected in releases prior to 12.6.8, 12.10.4. Upgrade your dependency to 12.6.8, 12.10.4 or later.
What is the CVSS score of CVE-2021-32729?
CVE-2021-32729 has a CVSS v3.1 base score of 2.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2021-32729?
CVE-2021-32729 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Maven dependencies for CVE-2021-32729?
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-m738-3rc4-5xv3",
  "modified" : "2021-07-02T16:44:24Z",
  "published" : "2021-07-02T19:19:31Z",
  "aliases" : [ "CVE-2021-32729" ],
  "summary" : "A user without PR can reset user authentication failures information",
  "details" : "### Impact\nThe script service method used to reset the authentication failures record can be executed by any user with Script rights and does not require Programming rights as it should have.\nNote that being able to reset the authentication failure record mean that an attacker with script right might use it to try performing a bruteforce attack since she'd been able to virtually deactivate the mechanism introduced to mitigate those attacks.\n\n### Patches\nThe problem has been patched in version 12.6.8, 12.10.4 and 13.0.\n\n### Workarounds\nThere's no workaround besides upgrading and being careful on which user should have Script right access. Note that any bruteforce attack on the authentication should be visible in the logs since the authentication failures are logged.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-18276\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira](http://jira.xwiki.org)\n* Email us at [the security mailing-list](mailto:security@xwiki.org)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-security-authentication-script"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.6"
      }, {
        "fixed" : "12.6.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-security-authentication-script"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.7"
      }, {
        "fixed" : "12.10.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-m738-3rc4-5xv3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32729"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-18276"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-693", "CWE-732" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-07-02T16:44:24Z",
    "nvd_published_at" : "2021-07-01T17:15:00Z"
  }
}