Skip to content

Commit

Permalink
Update change_user_details.php
Browse files Browse the repository at this point in the history
Added `exit;` statement to stop leaking vulnerability to Impossible level.
  • Loading branch information
sl33pingmathrapt0r committed Oct 11, 2023
1 parent d73ca5b commit 4ae428d
Showing 1 changed file with 1 addition 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

0 comments on commit 4ae428d

Please sign in to comment.