Skip to content

Cross-Site Scripting in ternary conditional operator

Moderate severity GitHub Reviewed Published Oct 7, 2020 in TYPO3/Fluid • Updated Feb 1, 2024

Package

composer typo3/cms (Composer)

Affected versions

>= 8.0.0, < 8.7.25
>= 9.0.0, < 9.5.6

Patched versions

8.7.25
9.5.6
composer typo3/cms-core (Composer)
>= 8.0.0, < 8.7.25
>= 9.0.0, < 9.5.6
8.7.25
9.5.6
composer typo3fluid/fluid (Composer)
>= 2.0.0, < 2.0.5
>= 2.1.0, < 2.1.4
>= 2.2.0, < 2.2.1
>= 2.3.0, < 2.3.5
>= 2.4.0, < 2.4.1
>= 2.5.0, < 2.5.5
>= 2.6.0, < 2.6.1
2.0.5
2.1.4
2.2.1
2.3.5
2.4.1
2.5.5
2.6.1

Description

Meta

  • CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C(5.0)
  • CWE-79

ℹ️  This vulnerability has been fixed in May 2019 already, CVE and GHSA were assigned later in October 2020


Problem

It has been discovered that the Fluid Engine (package typo3fluid/fluid) is vulnerable to cross-site scripting when making use of the ternary conditional operator in templates like the following.

{showFullName ? fullName : defaultValue}

Solution

Update to versions 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5 or 2.6.1 of this typo3fluid/fluid package that fix the problem described.

Updated versions of this package are bundled in following TYPO3 (typo3/cms-core) releases:

  • TYPO3 v8.7.25 (using typo3fluid/fluid v2.5.5)
  • TYPO3 v9.5.6 (using typo3fluid/fluid v2.6.1)

Credits

Thanks to Bill Dagou who reported this issue and to TYPO3 core merger Claus Due who fixed the issue.

References

References

@ohader ohader published to TYPO3/Fluid Oct 7, 2020
Reviewed Oct 8, 2020
Published to the GitHub Advisory Database Oct 8, 2020
Published by the National Vulnerability Database Oct 8, 2020
Last updated Feb 1, 2024

Severity

Moderate

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
High
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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:H/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS score

0.117%
(47th percentile)

CVE ID

CVE-2020-15241

GHSA ID

GHSA-7733-hjv6-4h47

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.