Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Feb 24, 2025
1 parent 1e96e14 commit 3bab882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intercepting-communication/sniff-cookie/run
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ServerHost(Host):

@app.route("/flag", methods=["GET"])
def flag():
if flask.session["user"] != "admin":
if flask.session.get("user", None) != "admin":
flask.abort(403, "NOPE")
return flag

Expand Down

0 comments on commit 3bab882

Please sign in to comment.