Skip to content

GHSA-fp36-mjw5-fmgx CVE-2023-29513

xwiki-platform-web-templates allows users to be created even when registration is disabled without validation via template macro

Medium Maven
Severity
5.0 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.67%
Chance of exploitation in the next 30 days. Higher than 52.07% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-284 Improper Access Control
Fix
14.10.1
Upgrade org.xwiki.platform:xwiki-platform-web-templates to this version or later

Description

Impact

If a guest has view rights on any document, it's possible to create a new user using the distribution/firstadminuser.wiki in the wrong context.

To reproduce:

  • On a wiki with view rights for guests but user registration disabled, open as guest <server>/xwiki/bin/view/Main?sheet=CKEditor.HTMLConverter&language=en&sourceSyntax=xwiki%2F2.1&stripHTMLEnvelope=true&fromHTML=false&toHTML=true&text=%7B%7Btemplate+name%3D%22distribution%2Ffirstadminuser.wiki%22+%2F%7D%7D where <server> is the URL of your XWiki installation.
  • Enter username and password of your choice.
  • Click "Register and login"

Patches

The vulnerability has been patched in XWiki 15.0-rc-1 and 14.10.1.

Workarounds

There is no known workaround other than upgrading.

References

https://jira.xwiki.org/browse/XWIKI-19852 https://jira.xwiki.org/browse/XWIKI-20400

For more information

If you have any questions or comments about this advisory:

Affected versions

Maven

PackageVulnerableFixed in
org.xwiki.platform:xwiki-platform-web-templates
>= 8.0-rc-1, < 14.10.1
14.10.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-templates Maven → 14.10.1

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

Severity breakdown

CVSS 3.1 5.0

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

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

Weakness

CWE-284: Improper Access Control

The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

How to prevent it
  • Architecture and Design, Operation: Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
  • Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

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-templates
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