juice-shop / juice-shop-ctf

Tool to export Juice Shop challenges and hints in data format compatible with CTFd, RootTheBox or FBCTF
http://owasp-juice.shop
MIT License
410 stars 116 forks source link

[πŸ›] Docker container fails due to permission issue #136

Closed MichaelEischer closed 8 months ago

MichaelEischer commented 1 year ago

:bug: Bug report

Description

Running the docker container using docker run -ti --rm -v $(pwd):/data bkimminich/juice-shop-ctf:v10.0.1 results in an error:

sh: /juice-shop-ctf/bin/juice-shop-ctf.js: Permission denied

Manually running chmod +x /juice-shop-ctf/bin/juice-shop-ctf.js solves the problem.

Is this a regression?

Probably, but I didn't bisect it.

:microscope: Minimal Reproduction

See below.

:fire: Exception or Error


$ docker run -ti --rm -v $(pwd):/data bkimminich/juice-shop-ctf:v10.0.1 /bin/sh
sh: /juice-shop-ctf/bin/juice-shop-ctf.js: Permission denied

:deciduous_tree: Your Environment


v18.18.0
9.8.1

Additional Information

github-actions[bot] commented 1 year ago

Thanks a lot for opening your first issue with us! 🧑 We'll get back to you shortly! ⏳ If it was a Support Request, please check our extensive CTF manual first. Also, please consider asking on the community chat next time! πŸ’¬

bkimminich commented 1 year ago

I can confirm that this problem seems to start occuring with v10.0.0. In v9.1.2 the error does not occur. The only change in the Dockerfile between those releases was switching the base images from NodeJS 14.x to 18.x.