Lucene search
K

Multiple File Attachments Mail Form Pro v2 - WebShell upload

🗓️ 17 Feb 2010 00:00:00Reported by EgoPLType 
zdt
 zdt
🔗 0day.today👁 23 Views

WebShell upload vulnerability in Multiple File Attachments Mail Form Pro v

Code
============================================================
Multiple File Attachments Mail Form Pro v2 - WebShell upload
============================================================

# Exploit Title: Multiple File Attachments Mail Form Pro v2 - WebShell upload
# Date: 16/02/2010
# Author: EgoPL
# Mail: [email protected]<mailto:[email protected]>
# Software Link: http://activeden.net/item/multiple-file-attachments-mail-form-prov2/31262
# Version: Pro V2
# Tested on: Arch Linux + Apache but it's OS independent.

#Exploit:
The webapp uploads the attachments of the mail with 777 permissions so you can upload a webshell and use it etc

Code
         if(!is_dir("./files")) mkdir("./files", 0755);
         move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);
         chmod("./files/".$_FILES['Filedata']['name'], 0777);

That's the EPIC fail. You only need to upload a webshell and enter to it in the folder files.



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

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

17 Feb 2010 00:00Current
7.1High risk
Vulners AI Score7.1
23