M5: Insecure Mobile Communication

M5: Insecure Mobile Communication

The app trusted any certificate, so anyone on the Wi-Fi could read it.

What Is M5: Insecure Mobile Communication?

An app that accepts any TLS certificate hands its traffic to whoever runs the network. You'll watch an attacker on café Wi-Fi read a sign-in and use the stolen session, then revoke those sessions and restore certificate validation with pinning.

What You'll Learn in M5: Insecure Mobile Communication

M5: Insecure Mobile Communication — Training Steps

  1. A free Wi-Fi network

    Desklark runs coworking spaces, and its app is how members book desks, open doors and pay. The café on the ground floor of its Canal Wharf space is where members wait for their booking to start. Bob sits in that café with a laptop. He starts a Wi-Fi hotspot with a name that sounds like the building's guest network, and routes everything that joins it through an intercepting proxy.

  2. Sign in at the café

    Alice is the mobile lead at Desklark. She has a desk booked upstairs at one, and while she waits for her coffee she joins the guest Wi-Fi and opens the app, like dozens of members do every day.

  3. Sign in

    The app asks her to sign in again after an update.

  4. The login, decrypted

    On the other side of the café, Bob's proxy has just handled a request from the Desklark app. The app accepted his forged certificate without a murmur, so the proxy holds the whole exchange in plain text.

  5. And the password

    The request that produced the token went through the proxy too.

  6. Use her session

    Bob replays the token from his own laptop, exactly as the app would, and asks the API who he is.

  7. Every door in the building

    Bob asks for the access codes of the space he is sitting in.

  8. Why HTTPS did not help

  9. A message from Tomasz

    Before the details land in her inbox, Tomasz Weller messages Alice directly.

  10. A sign-in from somewhere else

    Alice is at her desk upstairs when the security lead writes.

Security Framework Coverage

OWASP Mobile Top 10

  • M5:2024 Insecure Communication

OWASP MASVS

  • MASVS-NETWORK-1 The app secures all network traffic according to the current best practices.
  • MASVS-NETWORK-2 The app performs identity pinning for all remote endpoints under the developer's control.

CWE

  • CWE-295 Improper Certificate Validation
  • CWE-319 Cleartext Transmission of Sensitive Information

MITRE ATT&CK

  • T1638 Adversary-in-the-Middle

CIS Controls

  • CIS 16 Application Software Security

NIST CSF

  • PR.AT-02 Individuals in specialized roles are provided with awareness and training so that they possess the knowledge and skills to perform relevant tasks with cybersecurity risks in mind
  • PR.PS Platform Security

NICE Framework

  • DD-WRL-003 Secure Software Development