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 sanitization? #7

Closed
CeeJayBeenz opened this issue Jan 16, 2019 · 1 comment
Closed

XSS sanitization? #7

CeeJayBeenz opened this issue Jan 16, 2019 · 1 comment

Comments

@CeeJayBeenz
Copy link

I noticed that you could just put a piece of code as the name (on linux of course) and it would automatically execute. No tricks needed. Is there any simple sanitation that I could use? like replace < and > with _

@tennisfar
Copy link
Owner

I've tried to replicate this without luck. Renamed an image to <?php phpinfo(); ?>.png.

You could try to wrap the $image variable in htmlspecialchars($image).

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

2 participants