Skip to content

XSS Cross Site Scripting

Critical severity GitHub Reviewed Published Apr 20, 2021 in xwiki/xwiki-platform • Updated Feb 1, 2023

Package

maven org.xwiki.platform:xwiki-platform-oldcore (Maven)

Affected versions

< 12.6.3
>= 12.6.4, < 12.8

Patched versions

12.6.3
12.8
maven org.xwiki.platform:xwiki-platform-web (Maven)
< 12.6.3
>= 12.6.4, < 12.8
12.6.3
12.8

Description

Impact

It is possible to persistently inject scripts in XWiki.

For unregistred users:

  • By filling simple text fields

For registered users:

  • By filling their personal information
  • (if they have edit rights) By filling the values of static lists using App Within Minutes

That can lead to user's session hijacking, and if used in conjunction with a social engineering attack it can also lead to disclosure of sensitive data, CSRF attacks and other security vulnerabilities.
That can also lead to the attacker taking over an account.
If the victim has administrative rights it might even lead to code execution on the server, depending on the application and the privileges of the account.

Patches

It has been patched on XWiki 12.8 and 12.6.3.

Workarounds

There is no easy workaround except upgrading XWiki.

References

https://jira.xwiki.org/browse/XWIKI-17374

For more information

If you have any questions or comments about this advisory:

References

@surli surli published to xwiki/xwiki-platform Apr 20, 2021
Reviewed Apr 20, 2021
Published by the National Vulnerability Database Apr 20, 2021
Published to the GitHub Advisory Database Apr 22, 2021
Last updated Feb 1, 2023

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

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

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L

EPSS score

0.105%
(44th percentile)

Weaknesses

CVE ID

CVE-2021-29459

GHSA ID

GHSA-5c66-v29h-xjh8

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.