This is how user validation happens on my site:
if(!empty($_POST['username']) && !empty($_POST['password']))
{
$query = "SELECT * FROM users WHERE username='".$_POST['username']."' AND binary password='".$_POST['password']."'";
[I do however have this injection cleanup code running - Is this enough to tackle script / malicious code insertion in GET, POST requests? on every page that my site loads.]
However, I'm trying to develop a "list" of 'attacks' of clever username/password combinations that would test whether I can get unauthorized access into the system.
Stuff like:
- %%, %%
- *, *
- ' OR '1'='1, ' OR '1'='1