CST8265 ZAP Guide
CST8265 ZAP Guide
Introduction: The OWASP’s Zed Attack Proxy (ZAP) is one of the world's most popular
free security tools and is actively maintained by hundreds of international volunteers*. It can
help you automatically find security vulnerabilities in your web applications while you are
developing and testing your applications. For more details: https://www.zaproxy.org/
1. Installation
1. Download ZAP from
https://www.zaproxy.org/download/
or from BrightSpace
2. Installing certificate
Since all requests and responses are proxied by ZAP, the certificate verification will
fail for sites using SSL (HTTPS) and the connection will be terminated. To prevent
this from happening, ZAP generates an SSL certificate for each host, signed by its
own Certificate Authority (CA) certificate. This CA certificate is generated the first
time ZAP is run, and is stored locally. To use the ZAP Proxy with these websites,
you will need to install ZAP’s CA certificate as a trusted root in your browser.
1. Go to Tools -> Options -> Dynamic SSL Certificate. Click Generate and
then click Save.
2. Save the certificate in the desired location. Say in desktop.
3. Open your browser (firefox) and install the Certificate to your browser.
2
Then,
2. For ZAP
1. In the ZAP User Interface: go to Tools --> Options --> Local Proxy
2. Make sure the port is set to 9090 (or the port you have configured in your
browser).
3. Open any website using SSL in your browser and make sure the site
shows up in the sites list.
How to intercept the communication between server and browser using zap’s
break point:
OPEN FIREFOX BROWSER FROM ZAP’S ICON AS FOLLOWS:
4
NB: Before intercepting: Keep your webgoat on run to complete a lesson say, Http Basics.
You need to set break point just before your WebGoat activity. A green circle button on
top horizontal panel. (NB: when you press, it becomes red!)
5
Then start activity in webgoat (say submit i.e. requesting). Your browser now waiting for
the response from server.
Go to ZAP, you will see your request on the right side screen…. Edit according to your
requirements . . . then press submit and continue to the next break point button. (A blue
play button in the top panel)