From 19096f70e59374a7a6ac5e547cb82499a4597b4d Mon Sep 17 00:00:00 2001 From: znix <64723880+znixbtw@users.noreply.github.com> Date: Fri, 14 Jan 2022 19:14:45 +0530 Subject: [PATCH] Fixed XSS Found By @hitisec --- admin/cheat.php | 20 ++++++++++---------- admin/invites.php | 8 ++++---- admin/sub.php | 8 ++++---- admin/users.php | 20 ++++++++++---------- login.php | 2 +- profile.php | 12 ++++++------ register.php | 2 +- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/admin/cheat.php b/admin/cheat.php index 8bbbef1..a9b359e 100644 --- a/admin/cheat.php +++ b/admin/cheat.php @@ -16,21 +16,21 @@ Util::head('Admin Panel'); Util::navbar(); -// if post request +// if post request if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST["cheatStatus"])) { - $admin->setCheatStatus(); + $admin->setCheatStatus(); } if (isset($_POST["cheatMaint"])) { - $admin->setCheatMaint(); + $admin->setCheatMaint(); } if (isset($_POST["cheatVersion"])) { $ver = floatval($_POST['version']); - $admin->setCheatVersion($ver); + $admin->setCheatVersion($ver); } header("location: cheat.php"); @@ -92,29 +92,29 @@
-
"> - + + - +
-
"> +
- +
- +
diff --git a/admin/invites.php b/admin/invites.php index 7aa6463..037cf59 100644 --- a/admin/invites.php +++ b/admin/invites.php @@ -16,12 +16,12 @@ Util::head('Admin Panel'); Util::navbar(); -// if post request +// if post request if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST["genInv"])) { - $admin->getInvCodeGen($username); + $admin->getInvCodeGen($username); } header("location: invites.php"); @@ -37,8 +37,8 @@
-
"> - + + diff --git a/admin/sub.php b/admin/sub.php index 40afa4e..bb21ba3 100644 --- a/admin/sub.php +++ b/admin/sub.php @@ -16,12 +16,12 @@ Util::head('Admin Panel'); Util::navbar(); -// if post request +// if post request if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST["genSub"])) { - $admin->getSubCodeGen($username); + $admin->getSubCodeGen($username); } header("location: sub.php"); @@ -37,8 +37,8 @@
- "> - + + diff --git a/admin/users.php b/admin/users.php index bb1ebbe..eec0688 100644 --- a/admin/users.php +++ b/admin/users.php @@ -16,22 +16,22 @@ Util::head('Admin Panel'); Util::navbar(); -// if post request +// if post request if ($_SERVER['REQUEST_METHOD'] === 'POST') { - if (isset($_POST["resetHWID"])) { + if (isset($_POST["resetHWID"])) { $rowUID = $_POST['resetHWID']; - $admin->resetHWID($rowUID); + $admin->resetHWID($rowUID); } - if (isset($_POST["setBanned"])) { + if (isset($_POST["setBanned"])) { $rowUID = $_POST['setBanned']; - $admin->setBanned($rowUID); + $admin->setBanned($rowUID); } - if (isset($_POST["setAdmin"])) { + if (isset($_POST["setAdmin"])) { $rowUID = $_POST['setAdmin']; - $admin->setAdmin($rowUID); + $admin->setAdmin($rowUID); } header("location: users.php"); @@ -93,8 +93,8 @@ - "> - + + @@ -124,6 +124,6 @@ \ No newline at end of file diff --git a/login.php b/login.php index 6c5dfef..f188702 100644 --- a/login.php +++ b/login.php @@ -33,7 +33,7 @@

Login

- "> +
diff --git a/profile.php b/profile.php index 62a62f5..bc110bc 100644 --- a/profile.php +++ b/profile.php @@ -53,7 +53,7 @@

Update Password

- "> +
@@ -94,11 +94,11 @@ Sub:

- 0) { - Util::display($sub . ' days'); + 0) { + Util::display($sub . ' days'); } else { - Util::display('0 days'); + Util::display('0 days'); } ?>

@@ -116,7 +116,7 @@

Activate Sub

- "> +
diff --git a/register.php b/register.php index 94b2465..dd6604a 100644 --- a/register.php +++ b/register.php @@ -33,7 +33,7 @@

Register

- "> +