Skip to content

Insecure FTP protocol detected in Spring Integration configuration

Description

The code uses the FTP protocol to transmit data in cleartext, which is insecure. Sensitive information, such as credentials or personal data, can be intercepted by an attacker.

Examples

Insecure Code

java
DefaultFtpSessionFactory sf = new DefaultFtpSessionFactory(); sf.setHost("ftp://example.com");

Secure Code

java
DefaultFtpSessionFactory sf = new DefaultFtpSessionFactory(); sf.setHost("ftps://example.com");

Remediation

Use secure protocols like FTPS or SFTP instead of FTP to encrypt the data in transit.

Rule Details

FieldValue
IDCODE-0646
CategoryCrypto
SeverityMEDIUM
CWECWE-319
ConfidenceMEDIUM
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
Tagsftp, ftps, sftp, cleartext
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures

References