Skip to content

Use of cleartext transport protocol (Telnet)

Description

Telnet connection detected. Telnet transmits sensitive data like passwords in plaintext. Susceptible to sniffing and MITM attacks on insecure networks.

Examples

Insecure Code

java
org.apache.commons.net.telnet.TelnetClient telnetClient = new TelnetClient(); telnetClient.connect("example.com");

Secure Code

java
com.jcraft.jsch.JSch jsch = new JSch(); jsch.getSession("username", "example.com");

Remediation

Use SSH instead (e.g., with JSch or Apache MINA SSHD).

Rule Details

FieldValue
IDCODE-0251
CategoryCrypto
SeverityMEDIUM
CWECWE-319
ConfidenceMEDIUM
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
Tagstelnet, cleartext, ssh
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures