OWASP Mobile Top 10: M4 Unintended Data Leakage

Null Bangalore Meet

18 October 2014

Abstract

This month discussion : M4: Unintended Data Leakage

We will discuss about what is data leakage, places where data could be leaked. sample /examples of data leakage and how it differes from M2: Insecure data storage.

Slides

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.

This presentation covers OWASP Mobile Top 10 2014 risk M4, Unintended Data Leakage, explaining how mobile operating systems inadvertently expose sensitive user data through side-channel mechanisms developers often overlook. The session distinguishes this risk from M2 (Insecure Data Storage), demonstrates real-world leakage through Android logging and Firefox, and catalogs the common leakage vectors with practical prevention strategies.

Summary

The deck defined data leakage as what happens when a developer inadvertently places sensitive information in a location on the mobile device easily accessible by other apps, with these side effects typically originating from the underlying operating system. The vulnerability is especially prevalent in code produced by developers without intimate knowledge of how the OS stores and processes information. The M4 versus M2 distinction was called out as the point that confuses most people: M2 is about conscious efforts to store data insecurely, while M4 is about OS-specific quirks that cause leakages on their own.

The catalog of common leakage points ran through URL caching (both request and response data), keyboard press caching, copy/paste buffer caching, application backgrounding, logging, HTML5 data storage, browser cookie objects, and analytics data sent to third parties such as ad networks and social networks. Backgrounding got special attention: iOS and Android take screenshots of the application before backgrounding it to improve perceived reactivation performance, and those screenshots can leak customer data visible on screen. Keystroke logging is automatic on both platforms, with some keyboard input logged in the application directory for type-ahead capabilities. Third-party libraries such as ad libraries can leak information about the user, the device, or the user’s location. Debugging messages are another channel: setting the logging level to FINE produces log messages for all data transmitted between the device and the server. The deck also flagged clipboard copy and open-in functionality for sensitive documents (noting that MAF did not yet provide a way to disable them, targeted for a future release) and temporary directories that may contain sensitive information.

Two live examples anchored the risk: data leakage via logs on Android, and Firefox for Android leaking profile information through accessible storage. Prevention closed the deck: never log credentials, PII, or other sensitive data to system logs; remove sensitive data before screenshots are taken; disable keystroke logging per field and use anti-caching directives for web content; debug apps before releasing them to observe the files they create; review third-party libraries and the data they consume; and test applications across as many platform versions as possible.

Key Themes

Notable Points

Notable Quotes

“This is what confused most. How does unintended data leakage differ from insecure data storage.”

“M2 : Insecure data storage talks about conscious efforts to store data in insecure manner.”

“M4: Unintended data leakage talks about OS specific quirks which can cause data leakages.”

“never log credentials, PII, or other sensitive data to system logs”

“remove sensitive data before screenshots are taken”

Social chatter