I am editing someone else's PHP, and they have an 'authentication' system in which they are directly using post data in a conditional in code that looks like this:
if($database_password == $_POST['password']){
//access granted
}else{
//access denied
}
This doesn't look right, first of all, the password is stored in plaintext, but I am wondering whether the $_POST['password'] part is secure. I don't know if it is possible, but can't someone simply write '' OR 1==1 or something to gain access into the site? I am asking because I have to spend a significant amount of time in order to convince them that I need to introduce password rules and force every single user on the intranet to change their password to follow the new rules, especially when my task isn't supposed to involve editing this part of the code or the database.
Thanks!