Lucene search
K

PHPWebFTP 3.3b Cross Site Scripting

🗓️ 08 May 2016 00:00:00Reported by N_AType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 36 Views

PHPWebFTP 3.3b XSS vulnerability allows code injection to carry out attacks by bypassing firewall

Code
`PHPWebFTP ver 3.3b - xss vulnerability , by N_A.  
N_A [at] tutanota.com  
  
  
Vendor has notified  
  
  
  
Description  
----------------  
  
  
  
phpWebFTP enables connections to FTP servers, even behind a firewall not   
allowing traffic. phpWebFTP bypasses the firewall by making a FTP connection   
from your web server to the FTP server and transferring the files to your web   
client over the http protocol  
  
  
  
Vulnerability  
-------------  
  
  
PHPWebFTP ver 3.3b allows malicious code injection due to some variables we   
can control. This allows an attacker to inject malicious code to carry out   
XSS attacks upon the program.  
  
  
----snip , index.php----  
  
$server=$_SESSION['server'];  
$user=$_SESSION['user'];  
$password=$_SESSION['password'];  
$language=$_SESSION['language'];  
$port=$_SESSION['port'];  
$passive=$_SESSION['passive'];  
  
----snip , index.php----  
  
  
  
  
  
further down in the code, the variables are passed without any   
security/filtering checks:  
  
----snip, index.php----  
  
$ftp = new ftp($server, $port, $user, $password, $passive);  
$ftp->setMode($mode);  
$ftp->setCurrentDir($currentDir);  
  
----snip, index.php----  
  
  
  
  
  
Code injected into the [server] field: <script>alert('executed');</script>  
This is also possible for the [username],[port] and [field] options.  
  
  
  
  
N_A [at] tutanota.com  
  
  
  
  
--  
Securely sent with Tutanota. Claim your encrypted mailbox today!  
https://tutanota.com  
`

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

08 May 2016 00:00Current
7.4High risk
Vulners AI Score7.4
36