Stay in Touch

Application security insights and invitations to exclusive events in your inbox


Your data will stay confidential Private and Confidential

Local PHP File Inclusion in ResourceSpace

Advisory ID:HTB23258
Product:ResourceSpace
Vendor:Montala Limited
Vulnerable Versions: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 Fix:June 1, 2015
Public Disclosure:June 3, 2015
Latest Update:June 2, 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
 

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


ImmuniWeb® On-Demand Web Application Penetration Test


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.immuniweb.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, & 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® - Leveraging the power of machine-learning and genius of human brain to deliver the most advanced web application security and penetration testing.
[6] ImmuniWeb® SSLScan - Test your servers for security and compliance with PCI DSS, HIPAA and NIST.
User Comments
Add Comment


Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Quick Start
Technology
Products
Free Trial