exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Osclass 3.4.2 Shell Upload

Osclass 3.4.2 Shell Upload
Posted Dec 31, 2014
Authored by EgiX

Osclass versions 3.4.2 and below suffer from a remote shell upload vulnerability.

tags | exploit, remote, shell
advisories | CVE-2014-8085
SHA-256 | 825d51702a5b5cff864eca84c0ff288307cf0918b165529a013cccb1666471cd

Osclass 3.4.2 Shell Upload

Change Mirror Download
---------------------------------------------------------------------
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.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2014-16


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close