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\-_\!\$]+["']‘: //if valid form if(empty($e)){ $md5pass = md5($dpassword); $dbc = mysqli_connect(HOST,NAME,PASSWORD,DATABASE) or die('Error can not connect to database'); //find user in corporate table $q="SELECT * FROM corporate WHERE (email='$eemail' AND password='$md5pass' AND activated = 1)"; $result= mysqli_query($dbc,$q) or die("Error: ".mysqli_error($dbc)); if(@mysqli_num_rows($result) == 1) { $_SESSION = mysqli_fetch_array($result, MYSQLI_ASSOC); //set cookie setcookie('lname', […]

Viewing all articles
Browse latest Browse all 2663

Trending Articles