forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate ZAP 2.8.0 (no HUB) as the setup is different also update th…
…e filtering as usual ZAP exclusion is again broken
- Loading branch information
Showing
7 changed files
with
38 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+87.5 KB
webgoat-lessons/http-proxies/src/main/resources/images/zap-browser-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+301 KB
webgoat-lessons/http-proxies/src/main/resources/images/zap-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 17 additions & 9 deletions
26
...sons/http-proxies/src/main/resources/lessonPlans/en/HttpBasics_ProxyIntro4.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
=== Exclude WebGoat internal requests | ||
=== Exclude WebGoat internal requests (ZAP >= 2.8.0) | ||
|
||
Before we start diving into intercepting requests with ZAP we need to exclude the internal requests from the WebGoat | ||
framework otherwise ZAP will also stop at all the requests which are only necessary for the internal working of WebGoat. | ||
|
||
Right click on one of the links in history tab and select: `Exclude from -> Proxy`, see image below: | ||
In the main ZAP window click on Filter, see image below | ||
|
||
image::images/zap_exclude.png[Select URL from history,style="lesson-image"] | ||
image::images/zap-exclude.png[Exclude internal APIs from WebGoat,style="lesson-image"] | ||
|
||
{nbsp} | ||
{nbsp} | ||
|
||
Then in the `URL Inc Regex` box type: | ||
|
||
[source] | ||
---- | ||
http://localhost:8080/WebGoat/.* | ||
---- | ||
|
||
A new window will open and add the following entries: | ||
And in the `URL Exc Regex` box type: | ||
|
||
``` | ||
./WebGoat/service/..mvc | ||
``` | ||
[source] | ||
---- | ||
.*/WebGoat/service/.*mvc | ||
---- | ||
|
||
Click Ok to close the window, ZAP will now no longer proxy internal WebGoat requests. | ||
Click 'Apply to close the window, ZAP will now no longer show internal WebGoat requests. | ||
image::images/zap_exclude_url.png[Exclude internal APIs from WebGoat,style="lesson-image"] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters