ZAP docker webswing API

727 views
Skip to first unread message

Alessandro Pezzè

unread,
Mar 15, 2018, 6:52:35 AM3/15/18
to OWASP ZAP User Group
Hello, is it possible to access ZAP APIs using the image https://github.com/zaproxy/zaproxy/wiki/WebSwing?

I tried the :8080/UI and :8090/UI but i dont see the common html page. Webswing however works.

Thanks

thc...@gmail.com

unread,
Mar 15, 2018, 6:57:54 AM3/15/18
to zaprox...@googlegroups.com
Hi.

Yes, if you expose the port ZAP is listening to (when starting the
container) and allow external access to the API (e.g. host's address).

Which (host) OS are you using?

Best regards.

Alessandro Pezzè

unread,
Mar 15, 2018, 7:02:57 AM3/15/18
to OWASP ZAP User Group
I am on Win 10, using standard docker (not windows containers)

This is part of my docker-compose.yml

  zaproxy:
    image
: 'owasp/zap2docker-stable'
    hostname
: 'zaproxy'
    ports
:
     
- '8080:8080'
     
- '8090:8090'
    volumes
:
     
- ./...:/...
    restart
: always
    command
: 'zap-webswing.sh -host 0.0.0.0 -config api.disablekey=true -config database.recoverylog=false -config connection.timeoutInSecs=120 -config api.addrs.addr.name=.* -config api.addrs.addr.regex=true'

thc...@gmail.com

unread,
Mar 15, 2018, 7:07:14 AM3/15/18
to zaprox...@googlegroups.com
Yeah, I was referring to the Docker container :)

Which address are you using to access the API?

Best regards.

Alessandro Pezzè

unread,
Mar 15, 2018, 8:06:41 AM3/15/18
to OWASP ZAP User Group
On windows I use 10.0.75.2, I cant use localhost

Alessandro Pezzè

unread,
Mar 15, 2018, 8:11:11 AM3/15/18
to OWASP ZAP User Group
However I also access it from other containers, and the address that i use is http://zaproxy:8080/UI or http://zaproxy:8090/UI
Reply all
Reply to author
Forward
0 new messages