Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:28049
HistoryMay 10, 2012 - 12:00 a.m.

Multiple vulnerabilities in OrangeHRM

2012-05-1000:00:00
vulners.com
24

Advisory ID: HTB23080
Product: OrangeHRM
Vendor: OrangeHRM Inc.
Vulnerable Version(s): 2.7 RC and probably prior
Tested Version: 2.7 RC
Vendor Notification: 7 March 2012
Vendor Patch: 24 April 2012
Public Disclosure: 9 May 2012
Vulnerability Type: SQL Injection, Cross-Site Scripting (XSS)
CVE References: CVE-2012-1506, CVE-2012-1507
Solution Status: Fixed by Vendor
Risk Level: High
Credit: High-Tech Bridge SA Security Research Lab ( https://www.htbridge.com/advisory/ )


Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in OrangeHRM, which can be exploited to perform SQL Injection and Cross-Site Scripting (XSS) attacks.

1) SQL Injection in OrangeHRM: CVE-2012-1506

1.1 Input passed via the "hspSummaryId" GET parameter to /plugins/ajaxCalls/haltResumeHsp.php is not properly sanitised before being used in SQL "UPDATE" query. This vulnerability can be exploited by time-based blind SQL injection techniques to reveal sensitive information from the database.

The following PoC (Proof of Concept) will cause a delay of the script execution if MySQL server version is 5.*:

http://[host]/plugins/ajaxCalls/haltResumeHsp.php?newHspStatus=1&empId=2&hspSummaryId=%27%20OR%20%28select%20IF%28%28select%20mid%28version%28%29,1,1%29%29=5,%28select%20BENCHMARK%281000000,ENCODE%28%22hello%22,%22goodbye%22%29%29%29,%272%27%29%29%20–%202

Successful exploitation of this vulnerability requires attacker to be registered and logged-in.

2) Multiple Cross-Site Scripting (XSS) in OrangeHRM: CVE-2012-1507

2.1 Input passed via the "newHspStatus" GET parameter to /plugins/ajaxCalls/haltResumeHsp.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 affected website.

The following PoC (Proof of Concept) demonstrate the vulnerability:

http://[host]/plugins/ajaxCalls/haltResumeHsp.php?hspSummaryId=1&newHspStatus=1%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E&empId=1

2.2 Input passed via the "sortOrder" GET parameter to /templates/hrfunct/emppop.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 affected website.

The following PoC (Proof of Concept) demonstrate the vulnerability:

http://[host]/templates/hrfunct/emppop.php?reqcode=1&sortOrder1=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E

2.3 Input passed via the "uri" GET parameter to /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 administrator's browser session in context of affected website.

The following PoC (Proof of Concept) demonstrate the vulnerability:

http://[host]/index.php?uri=%22%3E%3C/iframe%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E


Solution:

Upgrade to OrangeHRM 2.7 Stable Release.

More Information:
http://blog.orangehrm.com/2012/04/24/orangehrm-27-stable-release-with-complete-localization/


References:

[1] High-Tech Bridge Advisory HTB23080 - https://www.htbridge.com/advisory/HTB23080 - Multiple vulnerabilities in OrangeHRM.
[2] OrangeHRM - http://www.orangehrm.com - OrangeHRM is the world’s most popular Open Source Human Resource Management Software (HRMS) with over 1,000,000 users globally.


Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.

Related for SECURITYVULNS:DOC:28049