MASTG walkthrough - OMTG_DATAST_001_SQLite_Not_Encrypted

The intent here is to show that no sensitive information should be stored in a SQLite database as it is stored by default in clear text.

datast_001_sql_1

Take a look at the source code

datast_001_sql_2

Line 28 indicates that we should look for a database called “privateNotSoSecure” in /data/data/sg.vp.owasp_mobile.omtg_android/databases

datast_001_sql_3

Open the database with sqlite3:

sqlite3 privateNotSoSecure

List tables:

.tables

Dump everything in table “Accounts”:

SELECT * FROM Accounts;

datast_001_sql_4

Tools used

Thoughts? Leave a comment