So Im not really a backend developer, but I need to develop a basic password login. The (totally unreasonable) client has specifically said that he only wants a password input. No username or any other information can be passed.Since there aren’t any users, there is only one password which I have coded directly into the script. Looks something like:
$password = $_POST['password']
if ($password == 'mypass') {
do something....
}
Is this vulnerable to some sort of injection hack? Are there any other huge security holes I should be worried about?
No, because you’re not injecting anything into anything else.