CVE-2012-1296: Elefant/cms Cross-Site Scripting Vulnerability
MODERATECVE-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
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.
Upgrade elefant/cms to 1.0.2-Beta
Upgrade elefant/cms to 1.1.5-Beta
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
CVE-2012-1296 Affected Elefant/cms Versions
2 component(s)| 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?
Which Elefant/cms versions are affected?
What version fixes CVE-2012-1296?
Is elefant/cms affected?
What CWE is associated with CVE-2012-1296?
How can I check Packagist dependencies for CVE-2012-1296?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}