CVE-2012-1296: Elefant/cms Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-qjjq-rcq8-jw6j
CWE-79
Published
Advisory Summary

CVE-2012-1296 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Elefant/cms libraries in the Packagist ecosystem. The issue involves elefant cms multiple xss vulnerabilities. Remediation is available by upgrading affected packages to version 1.0.2-Beta, 1.1.5-Beta.

CVE-2012-1296 at a Glance

CVE Identifier CVE-2012-1296
GHSA Identifier GHSA-qjjq-rcq8-jw6j
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 Elefant/cms
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2012-1296

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

elefant/cms fixed: 1.0.2-Beta
Upgrade elefant/cms to 1.0.2-Beta
elefant/cms fixed: 1.1.5-Beta
Upgrade elefant/cms to 1.1.5-Beta
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 elefant/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2012-1296, inspect your project dependencies for Elefant/cms:

inspect dependencies for elefant/cms

Analyze the terminal output to locate any version of Elefant/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2-Beta), 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 Elefant/cms, 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 `apps/admin/handlers/preview.php` in Elefant CMS 1.0.x before 1.0.2-Beta and 1.1.x before 1.1.5-Beta allow remote attackers to inject arbitrary web script or HTML via the (1) title or (2) body parameter to admin/preview.

CVE-2012-1296 Affected Elefant/cms Versions

2 component(s)
Fixed Versions:
1.0.2-Beta1.1.5-Beta
Product / Package Ecosystem Affected Versions Fixed Version
elefant/cms
Packagist
≥ 1.0
< 1.0.2-Beta
1.0.2-Beta
elefant/cms
Packagist
≥ 1.1
< 1.1.5-Beta
1.1.5-Beta

References

Frequently Asked Questions

What is CVE-2012-1296?
CVE-2012-1296 is a security vulnerability in Elefant/cms involving Elefant CMS Multiple XSS Vulnerabilities under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Elefant/cms versions are affected?
Affected versions include releases prior to 1.0.2-Beta, 1.1.5-Beta across affected packages: elefant/cms.
What version fixes CVE-2012-1296?
Upgrading to 1.0.2-Beta, 1.1.5-Beta (or the latest patched release for your respective branch) resolves the vulnerability.
Is elefant/cms affected?
Yes, elefant/cms is affected in releases prior to 1.0.2-Beta, 1.1.5-Beta. Upgrade your dependency to 1.0.2-Beta, 1.1.5-Beta or later.
What CWE is associated with CVE-2012-1296?
CVE-2012-1296 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-2012-1296?
Run the dependency tree command: 'inspect dependencies for elefant/cms'. 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-qjjq-rcq8-jw6j",
  "modified" : "2024-01-12T17:53:13Z",
  "published" : "2022-05-17T01:48:19Z",
  "aliases" : [ "CVE-2012-1296" ],
  "summary" : "Elefant CMS Multiple XSS Vulnerabilities",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in `apps/admin/handlers/preview.php` in Elefant CMS 1.0.x before 1.0.2-Beta and 1.1.x before 1.1.5-Beta allow remote attackers to inject arbitrary web script or HTML via the (1) title or (2) body parameter to admin/preview.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "elefant/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0"
      }, {
        "fixed" : "1.0.2-Beta"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "elefant/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1"
      }, {
        "fixed" : "1.1.5-Beta"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1296"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jbroadway/elefant/commit/1e38b1d91d9f8bfb4a0cda8316fe763a6cdd31d0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jbroadway/elefant/commit/4fc4e0a704f697e593be927a447ca12b2863ff85"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/73421"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jbroadway/elefant"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120306001248/http://www.elefantcms.com/forum/discussion/39/elefant-1.0.2-and-1.1.5-security-updates-released"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200229030623/http://www.securityfocus.com/bid/52143"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T17:53:13Z",
    "nvd_published_at" : "2012-08-26T20:55:00Z"
  }
}