Quantcast
Channel: Simple Password – LeakedIn
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

$
0
0
Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: $username = addslashes(htmlspecialchars($_POST['username'])); $password = addslashes(htmlspecialchars($_POST['parola'])); $md5_password = md5($password); $sel = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$md5_password'"); if(mysql_num_rows($sel)==1){ $row = mysql_fetch_array($sel); $_SESSION['logged'] = 'yes'; $_SESSION['user_id'] = $row['user_id']; header('Location:index.php'); } else { ech Source: http://pastebin.com/raw.php?i=gbH33JRW

Viewing all articles
Browse latest Browse all 2663

Trending Articles