Skip to content

Commit

Permalink
fixed classcast exception on randValue
Browse files Browse the repository at this point in the history
  • Loading branch information
zubcevic authored and nbaars committed Apr 21, 2019
1 parent 48d9264 commit 4bafc19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ AttackResult completed(@RequestParam Integer param1,

UserSessionData userSessionData = getUserSessionData();
SecureRandom number = new SecureRandom();
userSessionData.setValue("randValue",number.nextInt());
userSessionData.setValue("randValue",String.valueOf(number.nextInt()));

if (param1 == 42 && param2 == 24 && request.getHeader("webgoat-requested-by").equals("dom-xss-vuln")) {
return trackProgress(success().output("phoneHome Response is " + userSessionData.getValue("randValue").toString()).build());
Expand Down

0 comments on commit 4bafc19

Please sign in to comment.