Skip to content

Insecure FTP transport

Description

Use of FTP for file transfers is insecure because it transmits credentials and data in plaintext, allowing attackers to intercept sensitive information in transit.

Examples

Insecure Code

java
FTPClient ftpClient = new FTPClient();
ftpClient.connect("ftp.example.com");
ftpClient.login("username", "password");

Secure Code

java
FTPSClient ftpsClient = new FTPSClient();
ftpsClient.connect("ftps.example.com");
ftpsClient.login("username", "password");

Remediation

Use secure alternatives such as SFTP or FTPS.

Rule Details

FieldValue
IDCODE-0514
CategoryInsecureConfig
SeverityMEDIUM
CWECWE-319
ConfidenceHIGH
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityEASY
Tagsftp, insecure-transport
OWASPA02:2021-Cryptographic Failures