High-Tech Bridge SA has discovered multiple vulnerabilities in BrowserCRM, which can be exploited by malicious users to conduct SQL injection attacks and by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed via the URL appended to e.g. index.php, modules/admin/admin_module_index.php, and modules/calendar/customise_calendar_times.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
2) Input passed via the "framed" parameter to license/index.php and licence/view.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
3) Input passed via the "login[]" POST parameters to index.php or pub/clients.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
4) Input passed to the "parent_id" parameter in modules/Documents/version_list.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
5) Input passed to the "contact_id" parameter in modules/Documents/index.php (when "id" is set) is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
6) Input passed to the "login[username]" POST parameter in index.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
The vulnerabilities are confirmed in version 5.100.01. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: BrowserCRM
Solution
Edit the source code to ensure that input is properly sanitised.