Lucene search
+L

Osclass 3.4.2 Shell Upload Vulnerability

🗓️ 01 Jan 2015 00:00:00Reported by EgiXType 
zdt
 zdt
🔗 0day.today👁 86 Views

Osclass 3.4.2 Unrestricted File Upload Vulnerability in contact.ph

Related
Code
ReporterTitlePublishedViews
Family
cnvd
CNVD
Osclass 'contact.php' Arbitrary File Upload Vulnerability
4 Jan 201500:00
–cnvd
cve
CVE
CVE-2014-8085
5 Jan 201520:00
–cve
cvelist
Cvelist
CVE-2014-8085
5 Jan 201520:00
–cvelist
euvd
EUVD
EUVD-2014-7934
7 Oct 202500:30
–euvd
mend
Mend
CVE-2014-8085
5 Jan 201520:00
–mend
nvd
NVD
CVE-2014-8085
5 Jan 201520:59
–nvd
packetstorm
Packet Storm
Osclass 3.4.2 Shell Upload
31 Dec 201400:00
–packetstorm
prion
Prion
Unrestricted file upload
5 Jan 201520:59
–prion
ptsecurity
Positive Technologies
PT-2015-4001
5 Jan 201500:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2014-8085: Undefined Security Weakness
5 Jan 201500:00
–rapid7
Rows per page
---------------------------------------------------------------------
Osclass <= 3.4.2 (contact.php) Unrestricted File Upload Vulnerability
---------------------------------------------------------------------


[-] Software Link:

http://osclass.org/  


[-] Affected Versions:

Version 3.4.2 and probably prior versions.


[-] Vulnerability Description:

The vulnerable code is located in the /oc-includes/osclass/controller/contact.php script:

97.           if( osc_contact_attachment() ) {
98.               $attachment   = Params::getFiles('attachment');
99.               if(isset($attachment['tmp_name'])) {
100.                   $resourceName = $attachment['name'];
101.                   $tmpName      = $attachment['tmp_name'];
102.                   $resourceType = $attachment['type'];
103.                   $path = osc_uploads_path() . time() . '_' . $resourceName;
104.                   if( !is_writable(osc_uploads_path()) ) {
105.                       osc_add_flash_error_message( _m('There have been some errors ...
106.                       $this->redirectTo( osc_contact_url() );
107.                   }
108.  
109.                   if( !move_uploaded_file($tmpName, $path) ) {
110.                       unset($path);
111.                   }
112.               }
113.           }

The vulnerability exists because of the "CWebContact::doModel()" method not properly verifying the
extension of uploaded files. This could be exploited by unauthenticated attackers to upload and
execute arbitrary PHP code. Successful exploitation of this vulnerability requires the attachment
option for the contact page to be enabled (disabled by default).


[-] Solution:

Update to version 3.4.3 or later.


[-] Disclosure Timeline:

[30/09/2014] - Vendor notified
[30/09/2014] - Vendor response
[09/10/2014] - Version 3.4.3 released: http://blog.osclass.org/2014/10/09/osclass-3-4-3
[09/10/2014] - CVE number requested
[11/10/2014] - CVE number assigned
[31/12/2014] - Public disclosure


[-] CVE Reference:

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


[-] Credits:

Vulnerability discovered by Egidio Romano.

#  0day.today [2018-04-14]  #

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