Skip to content

Commit

Permalink
Improving headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcso committed Jan 5, 2024
1 parent f1b0dc5 commit 7c89140
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Binary file removed Season-1/Level-2/tests
Binary file not shown.
2 changes: 0 additions & 2 deletions Season-2/Level-2/hack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file exploits the vulnerabilities in code. Running this file will fail initially
// (it contains failing tests). As all other levels, your goal is to get this file to pass.

// Run this file using:

// Run hack by opening a terminal and running the following:
// $ go test -v Season-2/Level-2/code.go Season-2/Level-2/hack_test.go

Expand Down
12 changes: 6 additions & 6 deletions Season-2/Level-2/solution/solution.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Solution explained:

// 1) Remove the email being logged here:
// log.Printf("Invalid email format: %q", email)
// log.Printf("Invalid email format")
// log.Printf("Invalid email format: %q", email)
// log.Printf("Invalid email format")

// 2) Fix the error message to prevent user enumeration here:
// http.Error(w, "invalid email or password", http.StatusUnauthorized)
// http.Error(w, "Invalid Email or Password", http.StatusUnauthorized)
// http.Error(w, "invalid email or password", http.StatusUnauthorized)
// http.Error(w, "Invalid Email or Password", http.StatusUnauthorized)

// 3) Remove the email and password being logged here:
// log.Printf("User %q logged in successfully with a valid password %q", email, password)
// log.Printf("Successful login request")
// log.Printf("User %q logged in successfully with a valid password %q", email, password)
// log.Printf("Successful login request")

// Full solution follows:

Expand Down
1 change: 0 additions & 1 deletion Season-2/Level-3/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# 5. If stuck then read the hint
# 6. Compare your solution with solution.txt


# Run code.py (RECOMMENDED for this level) by following the instructions below:

# Run by opening a terminal and running the following:
Expand Down

0 comments on commit 7c89140

Please sign in to comment.