Skip to content

Commit

Permalink
Merge branch 'master' of github.com:digininja/DVWA
Browse files Browse the repository at this point in the history
  • Loading branch information
digininja committed Nov 1, 2023
2 parents d5f0031 + 9b787fc commit f221d07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vulnerabilities/authbypass/change_user_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

if (dvwaSecurityLevelGet() == "impossible" && dvwaCurrentUser() != "admin") {
print json_encode (array ("result" => "fail", "error" => "Access denied"));
exit;
}

if ($_SERVER['REQUEST_METHOD'] != "POST") {
Expand Down
1 change: 1 addition & 0 deletions vulnerabilities/authbypass/get_user_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
if ((dvwaSecurityLevelGet() == "high" || dvwaSecurityLevelGet() == "impossible") && dvwaCurrentUser() != "admin") {
print json_encode (array ("result" => "fail", "error" => "Access denied"));
exit;
}

$query = "SELECT user_id, first_name, last_name FROM users";
Expand Down

0 comments on commit f221d07

Please sign in to comment.