Mobile Top10 M2
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 2014-M2, Insecure Data Storage, explains how mobile applications on Android and iOS frequently store sensitive data in plaintext or trivially reversible formats. The deck walks through mobile storage architecture, the definition and impact of insecure storage, real-world examples including Google Authenticator and Microsoft Outlook, a detection methodology, and mitigation guidance for both platforms.
Summary
The deck opens by mapping out how each platform stores application data. On Android, application-specific data lives under /data/data/<app>, a section only the application and root can access, while /sdcard/ is external memory generally formatted FAT32, so no ACL applies and data can be read by all applications and externally by a card reader. On iOS, <Application_Home>/Documents/ is accessible only to the app and the root user, and there is no SD card equivalent.
The deck then defines insecure data storage: it occurs when development teams assume users or malware will never access the device filesystem, and sensitive information such as PII ends up in data stores on the device in an insecure format, meaning plaintext or trivially reversible encodings like double ROT-13, ROT-n, or base64. The consequences listed are identity theft, fraud, reputation damage, external policy violations such as PCI, and material loss.
The demo section shows Approtect, Google Authenticator (referencing the public issue where its secret keys database was stored in plaintext), and Microsoft Outlook mobile (referencing the INCLUDES Security blog write-up of email data stored in an accessible format).
For detection, the deck lists the common storage formats to inspect: XML, Plist, SQLite, plain text config files, log files, and cookies in WebView. The Android methodology is to install the app, configure and run it for some time, extract /data/data/<app_name>, observe changes in /sdcard/ before and after installation, then identify files and content. Mitigation covers avoiding storage unless necessary, never storing credentials on the phone filesystem, forcing authentication over HTTPS on each app open with minimal session timeouts, using SQLCipher for SQLite encryption, knowing NSManagedObjects persist to an unencrypted database, keeping shared preferences out of MODE_WORLD_READABLE, keeping PII off the SD card, avoiding NSUserDefaults for sensitive data on iOS, and treating keychains as readable once a device is jailbroken or rooted.
Key Themes
- Mobile storage architecture: Android keeps app data under
/data/data/<app>(app and root only) plus world-readable FAT32 SD card storage, while iOS scopes<Application_Home>/Documents/to the app and root and has no SD card. - Definition of insecure storage: developers assume users or malware will not reach the device filesystem, so PII lands in plaintext or trivially reversible encodings such as base64 or ROT-13.
- Business impact: identity theft, fraud, reputation damage, external policy violations such as PCI-DSS, and material loss.
- Real-world examples: Google Authenticator stored its secret keys database in plaintext, and Microsoft Outlook mobile stored email data in an accessible format, both documented publicly by researchers.
- Storage formats to inspect: XML, Plist, SQLite databases, plain text config files, log files, and WebView cookies.
- Android detection methodology: install, run, extract
/data/data/<app_name>, diff/sdcard/before and after install, then review file contents. - Mitigation principles: minimize stored data, keep credentials off the filesystem, re-authenticate over HTTPS on each launch, and encrypt databases with SQLCipher.
- Platform-specific pitfalls: MODE_WORLD_READABLE preferences on Android, NSUserDefaults and unencrypted NSManagedObject storage on iOS, and keychains that become readable on rooted or jailbroken devices.
Notable Points
- Android app data sits under
/data/data/<app>; only the application and root have access to that partition. /sdcard/is generally FAT32, so no ACL applies and every application plus an external card reader can read it.- Insecure formats called out include plaintext, double ROT-13, ROT-n, and base64/32/128 encodings.
- Google Authenticator stored its secret keys database in plaintext, referenced via its public Google Code issue tracker.
- Microsoft Outlook mobile stored email data in an accessible format, per the INCLUDES Security blog.
- Detection steps for Android: install the app, configure and run it, extract
/data/data/<app_name>, and compare/sdcard/before and after installation. - SQLCipher is the recommended option for SQLite data encryption.
- NSManagedObject entities are stored in an unencrypted database file on iOS.
- Shared preferences must not be MODE_WORLD_READABLE unless explicitly required for inter-app sharing.
- PII or sensitive information of any sort should not be stored on the SD card.
- NSUserDefaults should be avoided for sensitive pieces of information on iOS.
- Apple or Android keychains become easily readable once a device is jailbroken or rooted.
Notable Quotes
“It occurs when development teams assume that users or malware will not have access to a mobile device’s filesystem.”
“External memory generally FAT32 hence no ACL applies. Data can be read by all applications and externally read by card reader.”
“don’t store data unless absolutely necessary”
“Never store credentials on the phone file system”
“Be aware that all data/entities using NSManagedObects will be stored in an unencrypted database file.”
“Apple or android keychains can be used but once jailbroken or rooted it can be easily read.”
















