MASTG walkthrough - OMTG_CODING_003_SQL_Injection

The intent here is to show that SQL injection is also possible locally on an Android Device. Even if the risk is only locally on the device itself, prepared statements should always be used to mitigate SQL Injection.

Vulnerable code

coding_sqli1

Secure code with prepared statements

coding_sqli2

Bypass the login

coding_sqli3

Tools used

Thoughts? Leave a comment