Mobile Top10 M3

Null Bangalore Meet Bangalore, India
1 / 21
Slide 1 of Mobile Top10 M3
Slide 2 of Mobile Top10 M3
Slide 3 of Mobile Top10 M3
Slide 4 of Mobile Top10 M3
Slide 5 of Mobile Top10 M3
Slide 6 of Mobile Top10 M3
Slide 7 of Mobile Top10 M3
Slide 8 of Mobile Top10 M3
Slide 9 of Mobile Top10 M3
Slide 10 of Mobile Top10 M3
Slide 11 of Mobile Top10 M3
Slide 12 of Mobile Top10 M3
Slide 13 of Mobile Top10 M3
Slide 14 of Mobile Top10 M3
Slide 15 of Mobile Top10 M3
Slide 16 of Mobile Top10 M3
Slide 17 of Mobile Top10 M3
Slide 18 of Mobile Top10 M3
Slide 19 of Mobile Top10 M3
Slide 20 of Mobile Top10 M3
Slide 21 of Mobile Top10 M3

Abstract

Covers OWASP Mobile Top 10 Risk M3 (Insufficient Transport Layer Protection), walking through SSL/TLS vulnerabilities, known protocol weaknesses, and platform-specific secure implementation guidance.

AI Generated Summary

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.

The presentation on OWASP Mobile Top 10 Risk M3, Insufficient Transport Layer Protection, walks through transport layer fundamentals, TLS and SSL certificate mechanics, the attack surface of old protocol versions, and the insecure implementation patterns found in mobile applications. The deck closes with a detection workflow using interception proxies and platform-specific prevention guidance for iOS and Android developers.

Summary

The deck builds up from first principles. The transport layer is OSI Model Layer 4, providing end-to-end or host-to-host communication services for applications within a layered network architecture, using TCP and UDP, identified by IP:Port pairs, and in short the backbone of internet communication. TCP and UDP header structures are shown before moving to protection: Transport Layer Security, formerly Secure Socket Layer, latest version in use TLSv1.2, with SSLv2, SSLv3, TLSv1.0 and TLSv1.1 commonly found in the wild, all built on X.509 certificate-based asymmetric encryption, commonly known as HTTPS. TLS v1.3 had been in draft since July 2014.

Certificates are issued by a Certification Authority and follow a chain of trust to establish the identity of a website, while self-signed certificates used for internal purposes do not follow the trusted chain. The deck then catalogues insecure implementations: known weak ciphers or versions such as SSLv2, RC4, MD5, and CBC in SSL3, communication over self-signed certificates while ignoring warnings, securing only a specific portion of the communication, not validating the chain of trust, and mixing TLS and non-TLS content on a page.

A section on SSL version 2, designed by Netscape in 1994, lists its known attacks: identical keys for authentication and encryption, a weak MD5-based MAC vulnerable to length extension, no handshake protection so man-in-the-middle downgrade attacks go undetected, TCP connection close used to indicate end of data enabling truncation attacks, and single-service fixed-domain certificate assumptions that clash with virtual hosting. SSLv3 worked well until 2012 but has a weaker key derivation process dependent on MD5, and fell to renegotiation, BEAST, CRIME and BREACH, padding (Lucky 13), RC4 attacks, and implementation bugs like Apple SSL, Heartbleed, and GnuTLS failures. Chain-of-trust validation failures are covered with reference to CWE-296, and mixed content is flagged because analytics and tracking generally use HTTP, leaving them susceptible.

Detection is a short recipe: launch an emulator or device, add proxy settings for Burp, ZAP, or IronWASP, run the application, and if traffic interception works while the app still performs its actions, the implementation is flawed. Endpoint implementation flaws are identified with SSLScan, either the original or the rbsec fork on GitHub. Prevention advice includes assuming the connection is compromised, disabling weak ciphers and versions, performing all sensitive communication over TLS, never allowing self-signed certificate connections, using secure versions of tracking and ad network SDKs, adding a second encryption layer for sensitive data, following the OWASP Transport Layer Protection Cheat Sheet, and performing certificate validation via pinning. Platform specifics: on iOS use the Secure Transport API for CFNetwork, ensure NSURL calls do not allow self-signed or invalid certificates, and pin by exporting the certificate into the app bundle and anchoring it to the trust object via connection:willSendRequestForAuthenticationChallenge:; on Android verify that org.apache.http.conn.ssl.AllowAllHostnameVerifier or SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER are not present.

Key Themes

  • Transport layer fundamentals: OSI Layer 4 delivers host-to-host communication over TCP and UDP, identified by IP:Port, and is the backbone of internet communication.
  • TLS and certificates: X.509 certificate-based asymmetric encryption, issued by CAs and following a chain of trust, with TLSv1.2 the latest version in use and TLS v1.3 in draft since July 2014.
  • SSLv2’s broken design: identical keys for authentication and encryption, MD5-based MAC open to length extension, no handshake protection, truncation attacks via TCP close, and fixed-domain certificates that clash with virtual hosting.
  • SSLv3 and later attack surface: weak MD5-dependent key derivation, renegotiation, BEAST, CRIME and BREACH, Lucky 13 padding attacks, RC4 weaknesses, and implementation bugs like Apple SSL goto fail, Heartbleed, and GnuTLS failures.
  • Insecure mobile implementations: weak ciphers or versions, self-signed certificates with warnings ignored, partial protection, unvalidated chains of trust, and mixed TLS and non-TLS content on a page.
  • Chain of trust failures: not checking every intermediate certificate, missing Basic Constraints on intermediates, or a compromised root, referenced against CWE-296.
  • Mixed content risks: HTTP can be cached and read over the wire, and analytics and tracking generally use HTTP for quick transactions.
  • Detection workflow: proxy the device through Burp, ZAP, or IronWASP, and treat an app that keeps working under interception as flawed; profile endpoints with SSLScan.
  • Platform prevention: iOS Secure Transport API and certificate pinning via the trust object, Android checks for AllowAllHostnameVerifier and ALLOW_ALL_HOSTNAME_VERIFIER.

Notable Points

  • Latest TLS version in use at the time was TLSv1.2; TLS v1.3 had been in draft since July 2014.
  • TLS was first defined in 1999 and last updated in RFC 5246 (August 2008) and RFC 6176 (March 2011).
  • SSL version 2 was designed in 1994 by Netscape and blocked in most modern browsers.
  • SSLv2 uses the TCP connection close to indicate end of data, enabling truncation attacks where the attacker forges a TCP FIN.
  • SSLv3 was working well until 2012, with half of the master key fully dependent on the MD5 hash function.
  • Implementation bugs named include Apple SSL (goto fail), Heartbleed, and GnuTLS failures.
  • Detection: add proxy settings for Burp, ZAP, or IronWASP; if interception works and the application still performs its actions, the implementation is flawed.
  • SSLScan, either the original or the rbsec/sslscan fork on GitHub, identifies endpoint implementation flaws.
  • iOS pinning: export the certificate, include it in the app bundle, anchor it to the trust object using connection:willSendRequestForAuthenticationChallenge:.
  • iOS check: NSURL calls must not allow self-signed or invalid certificates, such as the setAllowsAnyHTTPSCertificate class method.
  • Android check: org.apache.http.conn.ssl.AllowAllHostnameVerifier and SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER must not be present.
  • The OWASP Transport Layer Protection Cheat Sheet is the referenced rulebook, with Moxie Marlinspike’s pinning article cited for certificate validation.

Notable Quotes

“In short backbone of internet communication”

“SSL version 2 was designed in 1994 by Netscape. Its 20 years old this year.”

“Blocked in most modern browsers (IE 6 users anyone?)”

“SSLv3 (was working good till 2012)”

“Assume connection is compromised”

“Never allow connection using Self-signed certificate.”

Resources

Embed This Presentation

See Also