Under the Hood: SQL Injection
- by Vince
-
in Blog
-
Hits: 1320
I witnessed someone trying to inject on a login form and what was expected and the actual result were night and day. The idea that if we find an injection point by entering a single tick does not necessarily mean we are going to be able to successfully enter ' or '1'='1 and achieve a positive outcome. In the example below, there at least two components to this injection, we have a PHP front-end with a MySQL back-end. The latter may cooperate, and it does, but it's the former that is determining what we can do and where we can do it.
Below, we have a simple login form. We enter a single tick: