We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b53094b + ac410be commit 3814b35Copy full SHA for 3814b35
src/main/java/org/owasp/webgoat/lessons/Challenge2Screen.java
@@ -210,7 +210,12 @@ protected Element doStage2(WebSession s) throws Exception
210
.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
211
212
// pull the USER_COOKIE from the cookies
213
- String cookie = URLDecoder.decode(getCookie(s),"utf-8");
+ String cookie = getCookie(s);
214
+ if (null == cookie) {
215
+ cookie = "";
216
+ } else {
217
+ cookie = URLDecoder.decode(cookie,"utf-8");
218
+ }
219
220
String user = Encoding.base64Decode(cookie);
221
String query = "SELECT * FROM user_data WHERE last_name = '" + user + "'";
0 commit comments