Skip to content

Insecure DTLS Version

Description

DTLS 1.0 is an outdated and less secure protocol compared to newer versions such as DTLS 1.2 or 1.3. It suffers from various security vulnerabilities and weaknesses.

Examples

Insecure Code

swift
let connection = NWConnection(host: NWEndpoint.Host("example.com"), port: NWEndpoint.Port("443"), using:.dtls)
let tlsVersion = "tls_protocol_version_t.DTLSv10"

Secure Code

swift
let connection = NWConnection(host: NWEndpoint.Host("example.com"), port: NWEndpoint.Port("443"), using:.dtls)
let tlsVersion = "tls_protocol_version_t.DTLSv12"

Remediation

Update the DTLS version to 1.2 or higher.

Rule Details

FieldValue
IDCODE-0631
CategoryCrypto
SeverityMEDIUM
CWECWE-757
ConfidenceHIGH
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityMODERATE
Tagssecurity misconfiguration, algorithm downgrade
OWASPA6:2017-Security Misconfiguration, A05:2021-Security Misconfiguration