CVE-2020-15241: Typo3fluid/fluid Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-7733-hjv6-4h47
CVSS 4.7
CWE-601 CWE-79
Published
Advisory Summary

CVE-2020-15241 is a MODERATE (CVSS 4.7) cross-site scripting vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Typo3fluid/fluid libraries in the Packagist ecosystem. The issue involves cross-site scripting in ternary conditional operator. Remediation is available by upgrading affected packages to version 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5, 2.6.1, 8.7.25, 9.5.6.

CVE-2020-15241 at a Glance

CVE Identifier CVE-2020-15241
GHSA Identifier GHSA-7733-hjv6-4h47
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Typo3fluid/fluid
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.7

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

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

How to Fix CVE-2020-15241

To remediate this vulnerability, upgrade all affected Typo3fluid/fluid dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

typo3fluid/fluid fixed: 2.0.5
Upgrade typo3fluid/fluid to 2.0.5
typo3fluid/fluid fixed: 2.1.4
Upgrade typo3fluid/fluid to 2.1.4
typo3fluid/fluid fixed: 2.2.1
Upgrade typo3fluid/fluid to 2.2.1
typo3fluid/fluid fixed: 2.3.5
Upgrade typo3fluid/fluid to 2.3.5
typo3fluid/fluid fixed: 2.4.1
Upgrade typo3fluid/fluid to 2.4.1
typo3fluid/fluid fixed: 2.5.5
Upgrade typo3fluid/fluid to 2.5.5
typo3fluid/fluid fixed: 2.6.1
Upgrade typo3fluid/fluid to 2.6.1
typo3/cms-core fixed: 8.7.25
Upgrade typo3/cms-core to 8.7.25
typo3/cms-core fixed: 9.5.6
Upgrade typo3/cms-core to 9.5.6
typo3/cms fixed: 8.7.25
Upgrade typo3/cms to 8.7.25
typo3/cms fixed: 9.5.6
Upgrade typo3/cms to 9.5.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for typo3fluid/fluid

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15241, inspect your project dependencies for Typo3fluid/fluid:

inspect dependencies for typo3fluid/fluid

Analyze the terminal output to locate any version of Typo3fluid/fluid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Typo3fluid/fluid, 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

> ### 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 --- :information_source:  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 * [TYPO3-CORE-SA-2019-013](https://typo3.org/security/advisory/typo3-core-sa-2019-013)

CVE-2020-15241 Affected Typo3fluid/fluid Versions

11 component(s)
Fixed Versions:
2.0.52.1.42.2.12.3.52.4.12.5.52.6.18.7.259.5.6
Product / Package Ecosystem Affected Versions Fixed Version
typo3fluid/fluid
Packagist
≥ 2.0.0
< 2.0.5
2.0.5
typo3fluid/fluid
Packagist
≥ 2.1.0
< 2.1.4
2.1.4
typo3fluid/fluid
Packagist
≥ 2.2.0
< 2.2.1
2.2.1
typo3fluid/fluid
Packagist
≥ 2.3.0
< 2.3.5
2.3.5
typo3fluid/fluid
Packagist
≥ 2.4.0
< 2.4.1
2.4.1
typo3fluid/fluid
Packagist
≥ 2.5.0
< 2.5.5
2.5.5
typo3fluid/fluid
Packagist
≥ 2.6.0
< 2.6.1
2.6.1
typo3/cms-core
Packagist
≥ 8.0.0
< 8.7.25
8.7.25
typo3/cms-core
Packagist
≥ 9.0.0
< 9.5.6
9.5.6
typo3/cms
Packagist
≥ 8.0.0
< 8.7.25
8.7.25
typo3/cms
Packagist
≥ 9.0.0
< 9.5.6
9.5.6

References

Frequently Asked Questions

What is CVE-2020-15241?
CVE-2020-15241 is a security vulnerability in Typo3fluid/fluid involving Cross-Site Scripting in ternary conditional operator under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Typo3fluid/fluid versions are affected?
Affected versions include releases prior to 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5, 2.6.1, 8.7.25, 9.5.6 across affected packages: typo3fluid/fluid, typo3/cms-core, typo3/cms.
What version fixes CVE-2020-15241?
Upgrading to 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5, 2.6.1, 8.7.25, 9.5.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is typo3fluid/fluid affected?
Yes, typo3fluid/fluid is affected in releases prior to 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5, 2.6.1. Upgrade your dependency to 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5, 2.6.1 or later.
Is typo3/cms-core affected?
Yes, typo3/cms-core is affected in releases prior to 8.7.25, 9.5.6. Upgrade your dependency to 8.7.25, 9.5.6 or later.
What is the CVSS score of CVE-2020-15241?
CVE-2020-15241 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2020-15241?
CVE-2020-15241 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Packagist dependencies for CVE-2020-15241?
Run the dependency tree command: 'inspect dependencies for typo3fluid/fluid'. 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-7733-hjv6-4h47",
  "modified" : "2021-11-19T15:11:11Z",
  "published" : "2020-10-08T19:55:53Z",
  "aliases" : [ "CVE-2020-15241" ],
  "summary" : "Cross-Site Scripting in ternary conditional operator",
  "details" : "> ### Meta\n> * 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)\n> * CWE-79\n\n---\n\n:information_source: &nbsp;This vulnerability has been fixed in May 2019 already, CVE and GHSA were assigned later in October 2020\n\n---\n\n### Problem\nIt 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.\n\n```\n{showFullName ? fullName : defaultValue}\n```\n\n### Solution\nUpdate 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.\n\nUpdated versions of this package are bundled in following TYPO3 (`typo3/cms-core`) releases:\n* TYPO3 v8.7.25 (using `typo3fluid/fluid` v2.5.5)\n* TYPO3 v9.5.6 (using `typo3fluid/fluid` v2.6.1)\n\n### Credits\nThanks to Bill Dagou who reported this issue and to TYPO3 core merger Claus Due who fixed the issue.\n\n### References\n* [TYPO3-CORE-SA-2019-013](https://typo3.org/security/advisory/typo3-core-sa-2019-013)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3fluid/fluid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.6.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.7.25"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.5.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.7.25"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.5.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/Fluid/security/advisories/GHSA-7733-hjv6-4h47"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15241"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/Fluid/commit/9ef6a8ffff2e812025fc0701b4ce72eea6911a3d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2020-15241.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2020-15241.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3fluid/fluid/CVE-2020-15241.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TYPO3/Fluid"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-core-sa-2019-013"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-10-08T19:55:04Z",
    "nvd_published_at" : "2020-10-08T21:15:00Z"
  }
}