File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
webgoat/src/main/java/org/owasp/webgoat/lessons Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ protected Element doStage2(WebSession s) throws Exception
73
73
{
74
74
getLessonTracker (s ).setStage (3 );
75
75
s .setMessage ("Stage 2 completed. " );
76
+ }
77
+ else
78
+ {
79
+ s .setMessage ("Only <img onerror... attacks are recognized for success criteria" );
76
80
}
77
81
78
82
return (ec );
@@ -91,6 +95,16 @@ protected Element doStage3(WebSession s) throws Exception
91
95
{
92
96
getLessonTracker (s ).setStage (4 );
93
97
s .setMessage ("Stage 3 completed." );
98
+ } else if (attackString .toString ().toLowerCase ().indexOf ("iframe" ) != -1
99
+ && attackString .toString ().toLowerCase ().indexOf ("onload" ) != -1
100
+ && attackString .toString ().toLowerCase ().indexOf ("alert" ) != -1 )
101
+ {
102
+ getLessonTracker (s ).setStage (3 );
103
+ s .setMessage ("Stage 3 completed. " );
104
+ }
105
+ else
106
+ {
107
+ s .setMessage ("Only <iframe javascript/onload... attacks are recognized for success criteria" );
94
108
}
95
109
return (ec );
96
110
}
You can’t perform that action at this time.
0 commit comments