High-Tech Bridge SA has discovered multiple vulnerabilities in Open Business Management, which can be exploited by malicious users to conduct SQL injection attacks and by malicious people to disclose potentially sensitive information and conduct cross-site scripting and SQL injection attacks.
1) Input passed via the "sel_domain_id" and "action" parameters to obm.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.
2) Input passed via the "tf_user" parameter to group/group_index.php (when "action" is set to "search") and "tf_name", "tf_delegation", and "tf_ip" parameters to host/host_index.php (when "action" is set to "search") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
3) Input passed to the "tf_name", "tf_delegation", and "tf_ip" parameters in index.php, "login" parameter in obm.php, and "tf_user" parameter in group/group_index.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) The application does not restrict access to the test.php script which calls the "phpinfo()" function and can be exploited to disclose PHP configuration details.
The vulnerabilities are confirmed in version 2.3.20. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: Open Business Management 2.x
Solution
Edit the source code to ensure that input is properly sanitised. Restrict access to the "test.php" file (e.g. via .htaccess).