Moderate severityNVD Advisory· Published Aug 26, 2012· Updated Apr 29, 2026
CVE-2012-1296
CVE-2012-1296
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
elefant/cmsPackagist | >= 1.0, < 1.0.2-Beta | 1.0.2-Beta |
elefant/cmsPackagist | >= 1.1, < 1.1.5-Beta | 1.1.5-Beta |
Affected products
4cpe:2.3:a:elefantcms:elefantcms:*:*:*:*:*:*:*:*+ 3 more
- cpe:2.3:a:elefantcms:elefantcms:*:*:*:*:*:*:*:*range: <=1.1.4_beta
- cpe:2.3:a:elefantcms:elefantcms:1.1.1_beta:*:*:*:*:*:*:*
- cpe:2.3:a:elefantcms:elefantcms:1.1.2_beta:*:*:*:*:*:*:*
- cpe:2.3:a:elefantcms:elefantcms:1.1.3_beta:*:*:*:*:*:*:*
Patches
24fc4e0a704f6Added require_admin to admin/preview action to ensure preview function is only used by admin functions
1 file changed · +4 −0
apps/admin/handlers/preview.php+4 −0 modified@@ -1,5 +1,9 @@ <?php +if (! User::require_admin ()) { + $this->redirect ('/admin'); +} + $wp = new Webpage ($_POST); $page->id = $_POST['id'];
1e38b1d91d9fAdded require_admin to admin/preview action to ensure preview function is only used by admin functions
1 file changed · +2 −0
apps/admin/handlers/preview.php+2 −0 modified@@ -5,6 +5,8 @@ * POST data must match values available to the Page object. */ +$this->require_admin (); + $wp = new Webpage ($_POST); $page->id = $_POST['id'];
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
12- secunia.com/advisories/48118nvdVendor Advisory
- www.elefantcms.com/forum/discussion/39/elefant-1.0.2-and-1.1.5-security-updates-releasednvdVendor Advisory
- github.com/advisories/GHSA-qjjq-rcq8-jw6jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2012-1296ghsaADVISORY
- exchange.xforce.ibmcloud.com/vulnerabilities/73421nvdWEB
- github.com/jbroadway/elefant/commit/1e38b1d91d9f8bfb4a0cda8316fe763a6cdd31d0ghsaWEB
- github.com/jbroadway/elefant/commit/4fc4e0a704f697e593be927a447ca12b2863ff85ghsaWEB
- web.archive.org/web/20120306001248/http://www.elefantcms.com/forum/discussion/39/elefant-1.0.2-and-1.1.5-security-updates-releasedghsaWEB
- web.archive.org/web/20200229030623/http://www.securityfocus.com/bid/52143ghsaWEB
- www.elefantcms.com/wiki/Changelognvd
- www.securityfocus.com/bid/52143nvd
- www.htbridge.com/advisory/HTB23076nvd
News mentions
0No linked articles in our index yet.