what you don't know can hurt you
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:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close