OWASP ZAP docker container hostname resolution

26 views
Skip to first unread message

msg life

unread,
Mar 7, 2022, 9:07:19 AM3/7/22
to OWASP ZAP Developer Group
Hello,
I'm trying to configure OWASP-ZAP using owasp/zap2docker-stable image.

I'm able to access a specific hostname via command line on the container but it fails with using the proxy webswing reports a 502 BAD GETEWAY

For instance lets say I have an application running on http://my-app.dslocal.com:7000/appContext then:
  • start owasp-zap container mapping zap/wrk folder
  • create a session
  • create a new browser (firefox) profile (to make it independent)
  • set my browser (firefox) to use owasp-zap proxy
  • add the .cert file as certificate on the browser (firefox) the cert file is found on the folder mapped to /zap/wrk
  • when navigating to  http://my-app.dslocal.com:7000/appContext on the browser I get an ZAP Error [java.net.UnknownHostException]
  • the webswing get the request but reports a 502 BAD GETEWAY
  • connecting to the container 
Is there some configuration that I'm missing?

Thank you

Reply all
Reply to author
Forward
0 new messages