Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(XSS exercise) http://localhost:1337 not working well(JS, CSS, Images) since nginx user doesn't have permissions + Workaround #35

Open
reuvenel opened this issue Dec 22, 2023 · 0 comments

Comments

@reuvenel
Copy link

reuvenel commented Dec 22, 2023

Hey there ;-)

I played with your machine ;-) and i found some problems in the XSS exercise:

  • When my browser tries to go: localhost:1337 i see that all Scripts, Images, and CSS getting 403 from the Server.
    So i investigated it a little bit.

First, you must specify a relevant tag when you're using Base docker images
https://github.com/ScaleSec/vulnado/blob/master/client/Dockerfile#L1
Pls change it to something that works and you're happy with like:
nginx:3.14-alpine.
This is what made you trouble, since every time you're taking the latest version.

Workaround(Temporary fix):

Enter to Container

sudo docker exec -it $(sudo docker ps -aqf "name=^vulnado-client") /bin/sh

and goes to

> cd /usr/share/nginx/html

Run those commands:

chmod -R a+rwx images
chmod -R a+rwx css
chmod -R a+rwx js

Now navigate to http://localhost:1337/login.html and make sure that everything is working fine!
• Check if there errors in the Inspect > Console tab in your browser.

Enjoy!

@reuvenel reuvenel changed the title http://localhost:1337 not working well(JS, CSS, Images) since nginx user doesn't have permissions (XSS exercise) http://localhost:1337 not working well(JS, CSS, Images) since nginx user doesn't have permissions Dec 22, 2023
@reuvenel reuvenel changed the title (XSS exercise) http://localhost:1337 not working well(JS, CSS, Images) since nginx user doesn't have permissions (XSS exercise) http://localhost:1337 not working well(JS, CSS, Images) since nginx user doesn't have permissions + Workaround Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant