loggedin.php (mysql injection possible)
Code:
$username = $_POST["username"];
$passwort = ($_POST["passwort"]);
$abfrage = "SELECT user_id, passwd FROM bg_user WHERE user_id LIKE '$username' LIMIT 1";
register.php (mysql injection possible)
Code:
$username = $_POST["username"];
$passwort = $_POST["passwort"];
$passwort2 = $_POST["passwort2"];
$user_code = $_POST ["user_code"];
$email = $_POST ["email"];
if($passwort != $passwort2 OR $username == "" OR $passwort == "" OR $user_code == "" OR $email == "" OR $passwort == $email OR $passwort == $user_code OR $passwort == $username)
{
echo "Insert error. Please correct it and try again. ";
exit;
}
$passwort = ($passwort);
$result = mysql_query("SELECT user_id FROM bg_user WHERE user_id LIKE '$username'");
$result1 = mysql_query("SELECT user_code FROM bg_user WHERE user_code LIKE '$user_code'");
$result2 = mysql_query("SELECT email FROM bg_user WHERE email LIKE '$email'");
admin_loggin.php (mysql injection possible)
Code:
$username = $_POST["username"];
$admin = $_POST["admin"];
$passwort = ($_POST["password"]);
$abfrage = "SELECT user_id, passwd FROM bg_user WHERE user_id LIKE '$username' LIMIT 1";
multiple files : Session hijacking possible. (anyone can login)
Code:
<?php
if(!isset($_SESSION["username"]))
{
echo "Please <a href=\"admin_login.php\">Login</a>";
exit;
}
?>
changepw.php ( mysql injection possible )
Code:
$user_code = $_POST ["user_code"];
$passwort = $_POST["passwort"];
$newpasswort = $_POST["newpasswort"];
if($passwort == $newpasswort OR $user_code == $newpasswort OR $user_code == "" OR $newpasswort == "" OR $passwort == "")
{
echo "Do not use your User Code/old password as new password! Check the fields for completeness!";
exit;
}
else
{
$eintrag = "UPDATE bg_user SET passwd = ('$newpasswort') WHERE passwd = ('$passwort')";
$eintragen = mysql_query($eintrag);
donation.php (mysql injection possible)
Code:
$user_code = $_POST["user_code"];
$psc_code = $_POST["psc_code"];
$value = $_POST["value"];
if($user_code == "" OR $psc_code == "" OR $value == "")
{
echo "Please fill out all fields";
exit;
}
$result = mysql_query("SELECT psc_code FROM t_donation WHERE psc_code LIKE '$psc_code'");
$menge = mysql_num_rows($result);
if($menge == 0)
{
$eintrag = "INSERT INTO t_donation (user_code, psc_code, value) VALUES ('$user_code', '$psc_code', '$value')";
$eintragen = mysql_query($eintrag);
Are u serious with this, or just trying to get people hacked?
[Only registered and activated users can see links. Click Here To Register...]
Anyone can make a session by himself with some addons on the browser.
Its not really safe to just check if a session exists.
Lets say i make a session named username then im already logged in.
Always confirm the data in the session with the data in the database.
I could make a session with a username, but for example i couldn't make one with the password of that username since i don't know it.