M6: Inadequate Mobile Privacy Controls
Users' health data was sitting in a crash dashboard.
What Is M6: Inadequate Mobile Privacy Controls?
A mobile app that writes users' personal and health data into its logs and crash reports spreads that data to every tool that collects them. You'll watch an attacker export thousands of profiles from a shared crash dashboard, then close the leak, purge the data and make the app collect only what it needs.
What You'll Learn in M6: Inadequate Mobile Privacy Controls
- Recognise that logs, crash reports and analytics events are data stores that copy personal data to third parties.
- Contain a leak by restricting access to the tool holding the data and purging what it already collected.
- Redact or drop personal and health fields before anything is logged or sent off the device.
- Apply data minimisation, collecting only the fields a feature needs and keeping them only as long as needed.
M6: Inadequate Mobile Privacy Controls — Training Steps
-
A link nobody meant to share
Wendrift is a running app that tunes training to the runner's cycle. Its crash reports go to Trapnest, a crash-reporting service. Months ago a developer pasted a read-only share link to the Android project into a public bug thread, and it still works. Bob found the link. He asks it for the project's issues.
-
Read one crash
A crash report carries breadcrumbs: the trail of things the app recorded just before it crashed. Bob opens the newest one.
-
Take all of them
The share link has no rate limit and no expiry. Bob keeps just the profile breadcrumbs from every event.
-
Names and home addresses
Coordinates become street addresses in one lookup. Bob turns the file into a list he can sell: who each runner is, where they live, and where they are in their cycle.
-
Where the data came from
-
A note from the DPO
Alice leads the Wendrift mobile apps. The data protection officer has written to her.
-
Open the app
Alice picks up her test phone, signed in to a test runner account, and looks at what the app tells runners about diagnostics.
-
What runners were told
Share diagnostics is on by default.
-
Watch the app log
Alice plugs the phone into her laptop and reads the app's own log while it signs in.
-
Close the link
The breadcrumbs end up in Trapnest. Alice checks the project's share links and finds the public one from the bug thread. She revokes it first.
Security Framework Coverage
OWASP Mobile Top 10
- M6:2024 Inadequate Privacy Controls
OWASP MASVS
- MASVS-STORAGE-2 The app prevents leakage of sensitive data.
- MASVS-PRIVACY-1 The app minimizes access to sensitive data and resources.
CWE
- CWE-532 Insertion of Sensitive Information into Log File
- CWE-359 Exposure of Private Personal Information to an Unauthorized Actor
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