Skip to content

Commit

Permalink
Update editPlayer.php
Browse files Browse the repository at this point in the history
Security Fix
  • Loading branch information
WebSEC.nl committed May 22, 2020
1 parent 1ade6fe commit d86ae6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editPlayer.php
Expand Up @@ -12,12 +12,12 @@
$staffPerms = $_SESSION['perms'];
$user = $_SESSION['user'];

$uidPlayer = mysqli_real_escape_string($_POST['hidden']);
$guidPlayer = htmlspecialchars($_POST['guid']);

include 'verifyPanel.php';
masterconnect();

$guidPlayer = htmlspecialchars($_POST['guid']);
$uidPlayer = mysqli_real_escape_string($dbcon, $_POST['hidden']);

$sql = "SELECT * FROM `players` WHERE uid = '$uidPlayer'";
$result = mysqli_query($dbcon, $sql);
$player = $result->fetch_object();
Expand Down

0 comments on commit d86ae6a

Please sign in to comment.