Post

Java’s SSLContext protocol name is a footgun

Java’s SSLContext.getInstance(‘TLSv1.2’) sets a maximum TLS version rather than a minimum, contrary to misleading documentation—the default SunJSSE provider (and others like Android’s Conscrypt) enable silent protocol downgrades. Developers following security guidance to specify a version may inadvertently implement a self-inflicted downgrade attack, accepting TLS 1.0/1.1 when expecting 1.2/1.3. The issue is pervasive because security scanners recommend this practice. The workaround is using the generic ‘TLS’ identifier to get sensible modern defaults, though with no formal guarantee of behavior.

Read original article

This post is licensed under CC BY 4.0 by the author.