How to Patch the Admin Login Bypass Bug

Actually, how to patch the admin bypass bug on the website is very easy, you only need to add the mysqli_escape_string command .

The following is an example of a source code that has an admin login bypass vulnerability, I will just take certain parts.

<? php
$ message = “”;
if (isset ($ _ POST [‘submit’])) {
$ username = ($ _POST [‘username’]);
$ password = ($ _POST…