VYPR
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.

PackageAffected versionsPatched versions
elefant/cmsPackagist
>= 1.0, < 1.0.2-Beta1.0.2-Beta
elefant/cmsPackagist
>= 1.1, < 1.1.5-Beta1.1.5-Beta

Affected products

4
  • cpe: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

2
4fc4e0a704f6

Added require_admin to admin/preview action to ensure preview function is only used by admin functions

https://github.com/jbroadway/elefantjbroadwayFeb 22, 2012via ghsa
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'];
    
1e38b1d91d9f

Added require_admin to admin/preview action to ensure preview function is only used by admin functions

https://github.com/jbroadway/elefantjbroadwayFeb 22, 2012via ghsa
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

News mentions

0

No linked articles in our index yet.