Quantcast
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: $errorMessage = ''; if (isset($_POST['txtUserId'])&& isset($_POST['txtPassword'])) { $username = mysql_real_escape_string($_POST['txtUserId']); $password = md5($_POST['txtPassword']); $result=mysql_query("SELECT * FROM users WHERE email='$username' AND password='$password'"); mysql_num_rows($result) === 1 echo success; /* check if the user id and password go together */ if ($_POST['txtUserId'] === 'admin' && $_POST['txtPassword'] === 'pass') { /* the user id […]

Viewing all articles
Browse latest Browse all 2663

Trending Articles