Jan Bodnar
Jan Bodnar

Reputation: 11647

Burp suite: cannot intercept traffic from a docker image application

There is a Juice Shop vulnerable application, which is available as a docker image. I am testing it on Windows 10. I was able to run the application with the following commands:

docker pull bkimminich/juice-shop
docker run --rm -p 3000:3000 bkimminich/juice-shop

Now Burp does not allow to set a listener on 127.0.0.1:3000, presumably because the docker is listening on that port. I cannot check the running option on the proxy listeners.

If I check the listener on Burp first, then the docker run fails with:

docker run -p 127.0.0.1:3000:3000 bkimminich/juice-shop
docker: Error response from daemon: driver failed programming external connectivity on endpoint stupefied_poincare (003588db40943cf7607c7c5dc20ad9f51eaef7bc81c7cf470fa6a2d20fcbd398): Error starting userland proxy: listen tcp 127.0.0.1:3000: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

How to fix it?

Upvotes: 1

Views: 2294

Answers (1)

LinPy
LinPy

Reputation: 18578

I think you need to start Burp with different Port and setup docker to use that as a proxy in your ~/.docker/config.json file:

{
 "proxies":
 {
   "default":
   {
     "httpProxy": "http://THEHOSTIPFORBURP:3001"
   }
 }
}

Upvotes: 1

Related Questions