M8: Mobile Security Misconfiguration

M8: Mobile Security Misconfiguration

The release build still shipped its debug menu.

What Is M8: Mobile Security Misconfiguration?

A mobile release that ships debug tools, a debug menu and open backups hands an attacker an admin token and a way in, with no login at all. You'll watch an attacker read a release manifest, launch an exported debug menu over adb and use the token it leaks, then revoke the token and harden the build so the debug menu never ships again.

What You'll Learn in M8: Mobile Security Misconfiguration

M8: Mobile Security Misconfiguration — Training Steps

  1. Read the release manifest

    Tarvenly is a parcel-courier company. Drivers run a Tarvenly app that shows the day's round, the next stop and a Navigate button. Drivers do not get it from Google Play: Tarvenly hands out the Android build as a download from its own site, so Play's checks never see it. Bob downloads the same file and unpacks what it declares about itself.

  2. Open the menu nobody should reach

    The manifest says the debug menu is startable from outside the app. Bob starts it by name on his own phone, the same way adb starts any activity.

  3. A token in the logs

    The menu is on screen, but Bob does not even need to read it there. The debug code in this build writes its state to the device log, so he dumps the log instead.

  4. Every parcel in the country

    Bob calls the Tarvenly ops API with the token, as if he were staff.

  5. Send someone else's parcel to himself

    Reading is not the end of it. The token's scope includes reroute, so Bob picks a parcel holding a new phone and changes where it goes.

  6. How he got in

  7. A token used from outside

    Alice leads the Tarvenly app team. Security has written to her.

  8. What the token is

    Before she revokes anything, Alice checks what this token actually is and what it has done.

  9. Kill the token, undo the reroute

    Every minute the token lives it can be used again. Alice revokes it and puts the rerouted parcel back on the customer's address.

  10. Open the build config

    Now the cause. Alice opens the manifest that ships with every build.

Security Framework Coverage

OWASP Mobile Top 10

  • M8:2024 Security Misconfiguration

OWASP MASVS

  • MASVS-PLATFORM-1 The app uses IPC mechanisms securely.
  • MASVS-STORAGE-2 The app prevents leakage of sensitive data.

CWE

  • CWE-926 Improper Export of Android Application Components
  • CWE-489 Active Debug Code

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