Abstract
Discussion about M3 Insecure Transport Layer
Discussion about M3 Insecure Transport Layer
AI Generated Content Disclaimer
Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.
This presentation covers OWASP Mobile Top 10 2014 risk M3, Insufficient Transport Layer Protection, providing a walkthrough of transport layer security fundamentals, known SSL/TLS vulnerabilities, and common insecure implementation patterns in mobile applications. The deck walks through the OSI model’s transport layer, TLS certificate chains, protocol weaknesses from SSLv2 through TLS 1.2, and platform-specific prevention guidance for Android and iOS developers.
The deck grounded transport security in the OSI model: Layer 4 provides end-to-end host-to-host communication for applications, using TCP and UDP, with IP:Port as the unique identifier, described as the backbone of internet communication. TCP and UDP header structures established the baseline before moving to protections: Transport Layer Security, formerly SSL, uses X.509 certificate-based asymmetric encryption, and is what is generally known as HTTPS. The latest version in use at the time was TLSv1.2, with TLS v1.3 in draft since July 2014; the protocol was first defined in 1999 and last updated in RFC 5246 (August 2008) and RFC 6176 (March 2011). Certificates are issued by Certification Authorities and follow a chain of trust to establish website identity, while self-signed certificates serve internal purposes outside that chain.
The insecure implementation list set up the vulnerability material: known weak ciphers or versions (SSLv2, RC4, MD5, CBC in SSL3), communication over self-signed certificates while ignoring warnings, securing only specific portions of communication, not validating the chain of trust, and mixing TLS and non-TLS content on a page, where analytics and tracking over HTTP are particularly susceptible. SSL version 2 got a dedicated slide: designed by Netscape in 1994, twenty years old that year, it uses identical cryptographic keys for authentication and encryption, a weak MD5-based MAC construction vulnerable to length extension attacks, no handshake protection so man-in-the-middle downgrade attacks go undetected, TCP connection close as the data terminator enabling truncation attacks, and single-service, fixed-domain certificate assumptions that clash with virtual hosting. It is blocked in most modern browsers.
SSLv3 “was working good till 2012” but has a weaker key derivation process, with half the master key dependent on MD5. The attack list: renegotiation attacks, BEAST (CBC ciphers), CRIME and BREACH (compressed connections and SPDY), padding attacks (Lucky 13), RC4 attacks, and implementation bugs like Apple SSL’s goto fail, Heartbleed, and GnuTLS failures. Chain of trust failures (referencing CWE-296) include accepting self-signed certificates in the chain, skipping intermediate certificate checks, missing Basic Constraints extensions, and compromised roots. Detection used an emulator or device with proxy settings for Burp, ZAP, or IronWASP: if traffic interception works and the application still performs its actions, the implementation is flawed, and endpoint implementation flaws are identified with SSLScan, the original or the rbsec fork.
Prevention closed the deck: assume the connection is compromised, disable weak ciphers and versions, perform entire sensitive communication over TLS, never allow self-signed certificate connections, use secure versions of tracking and ad network SDKs, add a second layer of encryption for sensitive data, follow the OWASP Transport Layer Protection Cheat Sheet, and perform certificate validation via pinning. Platform specifics: on iOS, use the Secure Transport API through CFNetwork for trusted client certificates, ensure NSURL calls (or wrappers) never allow self-signed or invalid certificates such as via setAllowsAnyHTTPSCertificate, and implement pinning by exporting the certificate, bundling it with the app, and anchoring it via connection:willSendRequestForAuthenticationChallenge:; on Android, verify that org.apache.http.conn.ssl.AllowAllHostnameVerifier and SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER are not present in the codebase.
connection:willSendRequestForAuthenticationChallenge:.AllowAllHostnameVerifier and SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER are not present in the codebase.“SSL version 2 was designed in 1994 by Netscape. Its 20 years old this year.”
“What we generally know as HTTPS”
“In short backbone of internet communication”
“Assume connection is compromised”
“Perform entire sensitive communication over TLS”