Lucene search
K

X2Engine 4.1.7 PHP Object Injection / Unrestricted File Upload Vulnerabilies

🗓️ 23 Sep 2014 00:00:00Reported by EgiXType 
zdt
 zdt
🔗 0day.today👁 47 Views

X2Engine 4.1.7 PHP Object Injection / Unrestricted File Uploa

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2014-5297
10 Oct 201401:00
cve
CVE
CVE-2014-5298
10 Oct 201401:00
cve
Cvelist
CVE-2014-5297
10 Oct 201401:00
cvelist
Cvelist
CVE-2014-5298
10 Oct 201401:00
cvelist
EUVD
EUVD-2014-5188
7 Oct 202500:30
euvd
EUVD
EUVD-2014-5189
7 Oct 202500:30
euvd
F5 Networks
K17156: PHP vulnerability CVE-2014-5298
21 Feb 202318:12
f5
F5 Networks
SOL17156 - PHP vulnerability CVE-2014-5298
20 Aug 201500:00
f5
NVD
CVE-2014-5297
10 Oct 201401:55
nvd
NVD
CVE-2014-5298
10 Oct 201401:55
nvd
Rows per page
-------------------------------------------------------------------------
X2Engine <= 4.1.7 (SiteController.php) PHP Object Injection Vulnerability
-------------------------------------------------------------------------


[-] Software Link:

http://www.x2engine.com/


[-] Affected Versions:

All versions from 2.8 to 4.1.7.


[-] Vulnerability Description:

The vulnerable code is located in the "actionSendErrorReport" method defined in /protected/controllers/SiteController.php:

153.      public function actionSendErrorReport(){
154.          if(isset($_POST['report'])){
155.              $errorReport = $_POST['report'];
156.              $errorReport = unserialize(base64_decode($errorReport));
157.              if(isset($_POST['email'])){
158.                  $errorReport['email'] = $_POST['email'];
159.              }

User input passed through the "report" POST parameter is not properly sanitized before being used in a call to the "unserialize()"
function at line 156. This can be exploited to inject arbitrary PHP objects into the application scope, and could allow an
attacker to carry out Server-Side Request Forgery (SSRF) and possibly other attacks via specially crafted serialized objects.


[-] Solution:

Apply the vendor patch or update to version 4.2 or later.


[-] Disclosure Timeline:

[31/07/2014] - Vendor notified
[31/07/2014] - Vendor released security patch: http://x2community.com/?showtopic=1804
[01/08/2014] - CVE number requested
[16/08/2014] - CVE number assigned
[05/09/2014] - Version 4.2 released
[23/09/2014] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2014-5297 to this vulnerability.



--------------------------------------------------------------------------------
X2Engine <= 4.1.7 (FileUploadsFilter.php) Unrestricted File Upload Vulnerability
--------------------------------------------------------------------------------


[-] Software Link:

http://www.x2engine.com/


[-] Affected Versions:

Version 4.1.7 and probably prior versions.


[-] Vulnerability Description:

The vulnerability exists because of the FileUploadsFilter::EXT_BLACKLIST constant, which is a regular
expression for blacklisted files. Due to a lack of case-insensitive matching, the global upload filter
could be bypassed by uploading a malicious file with capital letters within the extension. This can be
exploited to upload and execute arbitrary PHP scripts if X2Engine is running on a case-insensitive
filesystem or if the web server is configured to handle files’ extensions in a case-insensitive fashion.


[-] Solution:

Update to version 4.2 or later.


[-] Disclosure Timeline:

[01/08/2014] - Vendor notified
[02/08/2014] - CVE number requested
[16/08/2014] - CVE number assigned
[05/09/2014] - Version 4.2 released
[23/09/2014] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2014-5298 to this vulnerability.

[-] Credits:

Vulnerability discovered by Egidio Romano.

#  0day.today [2018-01-09]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation