MASTG-TEST-0263: Logging of StrictMode Violations
Overview¶
This test checks whether an app enables StrictMode
in production. While useful for developers to log policy violations such as disk I/O or network operations in production apps, leaving StrictMode
enabled can expose sensitive implementation details in the logs that could be exploited by attackers.
Steps¶
- Install the production build of your app on your device or emulator.
- Uses Monitoring System Logs to show the system logs
StrictMode
creates. - Open the app and let it execute.
Observation¶
The output should contain a list of log statements related to StrictMode
.
Evaluation¶
The test fails if an app logs any StrictMode
policy violations.
Demos¶
MASTG-DEMO-0037: App Leaking Information about Unclosed SQL Cursor via StrictMode