CVE-2011-0451: Ec cube/ec cube Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-wgvv-5396-ggvj
CWE-79
Published
Advisory Summary

CVE-2011-0451 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ec cube/ec cube libraries in the Packagist ecosystem. The issue involves ec-cube xss vulnerabilities. Remediation is available by upgrading affected packages to version 2.4.4.

CVE-2011-0451 at a Glance

CVE Identifier CVE-2011-0451
GHSA Identifier GHSA-wgvv-5396-ggvj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ec cube/ec cube
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2011-0451

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

ec-cube/ec-cube fixed: 2.4.4
Upgrade ec-cube/ec-cube to 2.4.4
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 ec-cube/ec-cube

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-0451, inspect your project dependencies for Ec cube/ec cube:

inspect dependencies for ec-cube/ec-cube

Analyze the terminal output to locate any version of Ec cube/ec cube in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.4), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Ec cube/ec cube, 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

Multiple cross-site scripting (XSS) vulnerabilities in (1) `data/Smarty/templates/default/list.tpl` and (2) `data/Smarty/templates/default/campaign/bloc/cart_tag.tpl` in EC-CUBE before 2.4.4 allow remote attackers to inject arbitrary web script or HTML via unspecified vectors.

CVE-2011-0451 Affected Ec cube/ec cube Versions

1 component(s)
Fixed Versions:
2.4.4
Product / Package Ecosystem Affected Versions Fixed Version
ec-cube/ec-cube
Packagist
< 2.4.4
2.4.4

References

Frequently Asked Questions

What is CVE-2011-0451?
CVE-2011-0451 is a security vulnerability in Ec cube/ec cube involving EC-CUBE XSS Vulnerabilities under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ec cube/ec cube versions are affected?
Affected versions include releases prior to 2.4.4 across affected packages: ec-cube/ec-cube.
What version fixes CVE-2011-0451?
Upgrading to 2.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ec-cube/ec-cube affected?
Yes, ec-cube/ec-cube is affected in releases prior to 2.4.4. Upgrade your dependency to 2.4.4 or later.
What CWE is associated with CVE-2011-0451?
CVE-2011-0451 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2011-0451?
Run the dependency tree command: 'inspect dependencies for ec-cube/ec-cube'. 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-wgvv-5396-ggvj",
  "modified" : "2024-01-15T20:53:35Z",
  "published" : "2022-05-17T02:02:18Z",
  "aliases" : [ "CVE-2011-0451" ],
  "summary" : "EC-CUBE XSS Vulnerabilities",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in (1) `data/Smarty/templates/default/list.tpl` and (2) `data/Smarty/templates/default/campaign/bloc/cart_tag.tpl` in EC-CUBE before 2.4.4 allow remote attackers to inject arbitrary web script or HTML via unspecified vectors.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ec-cube/ec-cube"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-0451"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/EC-CUBE/ec-cube/commit/8ef6541fc66b86d40a4333ec1608be3191c5e463"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/65079"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/EC-CUBE/ec-cube"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200229005109/http://www.securityfocus.com/bid/46100"
  }, {
    "type" : "WEB",
    "url" : "http://jvn.jp/en/jp/JVN84393059/index.html"
  }, {
    "type" : "WEB",
    "url" : "http://jvndb.jvn.jp/en/contents/2011/JVNDB-2011-000011.html"
  }, {
    "type" : "WEB",
    "url" : "http://svn.ec-cube.net/open_trac/changeset/18742"
  }, {
    "type" : "WEB",
    "url" : "http://www.ec-cube.net/info/weakness/weakness.php?id=36"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-15T20:53:35Z",
    "nvd_published_at" : "2011-02-03T16:00:00Z"
  }
}