Skip to content

Cleartext transmission of sensitive information

Description

FTP allows for unencrypted file transfers. Consider using an encrypted alternative.

Examples

Insecure Code

php
$ftp = ftp_connect('example.com');

Secure Code

php
$sftp = ssh2_sftp('example.com');

Remediation

Use an encrypted alternative to FTP, such as SFTP or FTPS, to protect sensitive information during transmission.

Rule Details

FieldValue
IDCODE-0751
CategoryInsecureConfig
SeverityMEDIUM
CWECWE-319
ConfidenceHIGH
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
Tagsftp, encryption
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures

References