Skip to content

GHSA-h5j3-5x63-p8jv CVE-2022-36093

XWiki Platform Web Templates vulnerable to Unauthorized User Registration Through the Distribution Wizard

High Maven
Severity
8.5 / 10
High · CVSS 3.1
Exploit chance (EPSS)
0.88%
Chance of exploitation in the next 30 days. Higher than 58.98% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-287 Improper Authentication
CWE-288 Authentication Bypass Using an Alternate Path or Channel
Fix
Available
2 packages have a fixed version

Description

Impact

By passing a template of the distribution wizard to the xpart template, user accounts can be created even when user registration is disabled. This also circumvents any email verification. Before versions 14.2 and 13.10.4, this can also be exploited on a private wiki, thus potentially giving the attacker access to the wiki. Depending on the configured default rights of users, this could also give attackers write access to an otherwise read-only public wiki. Users can also be created when an external authentication system like LDAP is configured, but authentication fails unless the authentication system supports a bypass/local accounts are enabled in addition to the external authentication system.

Patches

This issue has been patched in XWiki 13.10.5 and 14.3RC1.

Workarounds

It is possible to replace xpart.vm, the entry point for this attack, by a patched version from the patch without updating XWiki.

References

For more information

If you have any questions or comments about this advisory:

Affected versions

Maven

PackageVulnerableFixed in
org.xwiki.platform:xwiki-platform-web
>= 8.0-rc-1, < 13.10.5
13.10.5
org.xwiki.platform:xwiki-platform-web
>= 14.0, < 14.3-rc-1
14.3-rc-1
org.xwiki.platform:xwiki-platform-web-templates
< 13.10.5
13.10.5
org.xwiki.platform:xwiki-platform-web-templates
>= 14.0, < 14.3-rc-1
14.3-rc-1

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

org.xwiki.platform:xwiki-platform-web Maven → 13.10.5

maven
<dependency><groupId>org.xwiki.platform</groupId><artifactId>xwiki-platform-web</artifactId><version>13.10.5</version></dependency>
gradle
implementation("org.xwiki.platform:xwiki-platform-web:13.10.5")

org.xwiki.platform:xwiki-platform-web-templates Maven → 13.10.5

maven
<dependency><groupId>org.xwiki.platform</groupId><artifactId>xwiki-platform-web-templates</artifactId><version>13.10.5</version></dependency>
gradle
implementation("org.xwiki.platform:xwiki-platform-web-templates:13.10.5")

Severity breakdown

CVSS 3.1 8.5

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

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None

Weakness

CWE-287: Improper Authentication

When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

How to prevent it
  • Architecture and Design: Use an authentication framework or library such as the OWASP ESAPI Authentication feature.

CWE-288: Authentication Bypass Using an Alternate Path or Channel

The product requires authentication, but the product has an alternate path or channel that does not require authentication.

How to prevent it
  • Architecture and Design: Funnel all access through a single choke point to simplify how users can access a resource. For every access, perform a check to determine if the user has permissions to access the resource.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-w4fj-87j5-f25c
XWiki has Reflected Cross-Site Scripting (XSS) in page history compare
Medium Also affects org.xwiki.platform:xwiki-platform-web-templates
GHSA-wvqx-m5px-6cmp
XWiki Affected by Reflected Cross-Site Scripting (XSS) in Error Messages
Medium Also affects org.xwiki.platform:xwiki-platform-web-templates
GHSA-7vpr-jm38-wr7w
XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication
Medium Also affects org.xwiki.platform:xwiki-platform-web-templates
GHSA-m9x4-w7p9-mxhx
XWiki allows Reflected XSS in two templates
Medium Also affects org.xwiki.platform:xwiki-platform-web-templates
GHSA-f963-4cq8-2gw7
In XWiki Platform, payloads stored in content is executed when a user with script/programming right edit them
High Also affects org.xwiki.platform:xwiki-platform-web-templates
GHSA-692v-783f-mg8x
XWiki Platform vulnerable to Cross-Site Scripting (XSS) through conflict resolution
Medium Also affects org.xwiki.platform:xwiki-platform-web-templates
GHSA-93gh-jgjj-r929
XWiki Platform vulnerable to XSS with edit right in the create document form for existing pages
Medium Also affects org.xwiki.platform:xwiki-platform-web
GHSA-qcj9-gcpg-4w2w
XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
Critical Also affects org.xwiki.platform:xwiki-platform-web-templates
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor