Bugtraq mailing list archives

Local PHP File Inclusion in ResourceSpace


From: High-Tech Bridge Security Research <advisory () htbridge ch>
Date: Wed, 3 Jun 2015 12:06:29 +0200 (CEST)

Advisory ID: HTB23258
Product: ResourceSpace
Vendor: Montala Limited
Vulnerable Version(s): 7.1.6513 and probably prior
Tested Version: 7.1.6513
Advisory Publication:  May 6, 2015  [without technical details]
Vendor Notification: May 6, 2015 
Vendor Patch: June 1, 2015 
Public Disclosure: June 3, 2015 
Vulnerability Type: PHP File Inclusion [CWE-98]
CVE Reference: CVE-2015-3648
Risk Level: High 
CVSSv2 Base Score: 7.6 (AV:N/AC:H/Au:N/C:C/I:C/A:C)
Solution Status: Fixed by Vendor
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) 

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge Security Research Lab discovered vulnerability in ResourceSpace, which can be exploited to include 
arbitrary local PHP file, execute PHP code, and compromise vulnerable web application and even entire web server on 
which the application is hosted. 

The vulnerability exists due to the absence of filtration of the "defaultlanguage" HTTP GET parameter received from the 
user before including PHP file using the "include()" PHP function in "/pages/setup.php" script. The installation script 
"/pages/setup.php" remains on the system after installation by default and is remotely accessible to non-authenticated 
users.

A simple PoC below includes a local file "/tmp/file.php":

http://[host]/pages/setup.php?defaultlanguage=../../../../../tmp/file


-----------------------------------------------------------------------------------------------

Solution:

Update to ResourceSpace 7.2.6727

More Information:
http://svn.montala.com/websvn/revision.php?repname=ResourceSpace&path=%2F&rev=6640&peg=6738

-----------------------------------------------------------------------------------------------

References:

[1] High-Tech Bridge Advisory HTB23258 - https://www.htbridge.com/advisory/HTB23258 - Local PHP File Inclusion in 
ResourceSpace.
[2] ResourceSpace - http://resourcespace.org - ResourceSpace open source digital asset management software is the 
simple, fast, &amp; free way to organise your digital assets.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public 
use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE 
is a formal list of software weakness types.
[5] ImmuniWeb® SaaS - https://www.htbridge.com/immuniweb/ - hybrid of manual web application penetration test and 
cutting-edge vulnerability scanner available online via a Software-as-a-Service (SaaS) model.

-----------------------------------------------------------------------------------------------

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.


Current thread: