Mobile Top10 M4

Null Bangalore Meet Bangalore, India
1 / 13
Slide 1 of Mobile Top10 M4
Slide 2 of Mobile Top10 M4
Slide 3 of Mobile Top10 M4
Slide 4 of Mobile Top10 M4
Slide 5 of Mobile Top10 M4
Slide 6 of Mobile Top10 M4
Slide 7 of Mobile Top10 M4
Slide 8 of Mobile Top10 M4
Slide 9 of Mobile Top10 M4
Slide 10 of Mobile Top10 M4
Slide 11 of Mobile Top10 M4
Slide 12 of Mobile Top10 M4
Slide 13 of Mobile Top10 M4

Abstract

Covers OWASP Mobile Top 10 Risk M4 (Unintended Data Leakage), explaining how mobile operating systems inadvertently expose sensitive data through side-channel mechanisms that developers often overlook.

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 Risk M4, Unintended Data Leakage, explains how mobile operating systems expose sensitive user data through side-channel mechanisms that developers overlook. The deck separates this risk from M2 Insecure Data Storage, catalogues the common leakage points from URL caching to analytics SDKs, demonstrates leakage through Android logs and Firefox on Android, and closes with practical prevention advice.

Summary

The deck defines data leakage as occurring when a developer inadvertently places sensitive information in a location on the mobile device that is easily accessible by other apps on the device. These side effects typically originate from the underlying mobile operating system, and the vulnerability is especially prevalent in code produced by developers who lack intimate knowledge of how the OS stores or processes that information.

A dedicated slide untangles the confusion between the two related risks: M2 insecure data storage talks about conscious efforts to store data in an insecure manner, while M4 unintended data leakage talks about OS-specific quirks which can cause data leakages.

The deck then enumerates the common leakage points: URL caching of both request and response, 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. Each gets detail. iOS and Android take screenshots of the application before backgrounding it to improve perceived performance on reactivation, and those screenshots become a security concern due to the potential leak of customer data. On iOS and Android some information entered via the keyboard is automatically logged in the application directory for type-ahead capabilities, which could lead to leaks of customer data. Third-party libraries such as ad libraries can leak information about the user, the device, or the user’s location. Debugging messages are another vector: setting the logging level to FINE results in log messages being written for all data transmitted between the user’s device and the server. The deck also recommends disabling clipboard copy and open-in functionality for sensitive documents, noting that MAF does not currently provide that capability and has targeted it for a future release, and warns that temporary directories may contain sensitive information.

Two demos follow: data leakage via logs, shown through Android’s logcat, and Firefox on Android leaking profile information, referenced against the SecurityIntelligence write-up on Firefox profile vulnerabilities. Prevention advice is a six-item list: 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 release 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

  • What M4 means: sensitive data ends up in locations easily accessible by other apps, through side effects of the operating system rather than deliberate developer choices.
  • M4 versus M2: insecure data storage is about conscious efforts to store data insecurely, unintended data leakage is about OS-specific quirks that cause leakage.
  • Backgrounding screenshots: iOS and Android capture screens before backgrounding to speed reactivation, potentially leaking customer data visible on screen.
  • Keystroke caching: keyboard input logged automatically in the application directory for type-ahead can retain sensitive customer data.
  • Third-party libraries: ad and analytics libraries can leak user, device, or location information without the app developer’s knowledge.
  • Debug logging: verbose logging levels capture all data transmitted between device and server, demonstrated live through Android logs.
  • Clipboard and open-in: sensitive documents should have copy and open-in disabled, though MAF lacked that capability at the time.
  • Temporary directories: residual files from application operations may contain sensitive information.

Notable Points

  • Eight common leakage points are listed: URL caching (request and response), keyboard press caching, copy/paste buffer caching, application backgrounding, logging, HTML5 data storage, browser cookie objects, and analytics data sent to third parties.
  • Screenshots taken at backgrounding are justified by perceived performance but are a security concern due to potential customer data leaks.
  • Keyboard logging on iOS and Android feeds type-ahead capabilities from the application directory.
  • Setting the logging level to FINE writes log messages for all data transmitted between the user’s device and the server.
  • The MAF framework could not disable copy and open-in functionality at the time, with the fix targeted for a future release.
  • The Firefox demo shows profile information leakage on Android, backed by the securityintelligence.com article on overtaking Firefox profiles.
  • The log demo shows data leakage via Android logs (logcat).
  • Prevention: never log credentials or PII, remove sensitive data before screenshots, disable keystroke logging per field, debug apps before release to observe created files, review third-party libraries, and test across as many platform versions as possible.
  • References include the OWASP M4 page, the iOS Developer Cheat Sheet, and the Oracle Mobile Application Framework secure development practices document.

Notable Quotes

“When a developer inadvertently places sensitive information or data in a location on the mobile device that is easily accessible by other apps on the device.”

“Typically, these side-effects originate from the underlying mobile device’s operating system (OS).”

“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”

“test applications across as many platform versions as possible.”

Resources

Embed This Presentation

See Also