-
Notifications
You must be signed in to change notification settings - Fork 35
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
File Upload Vulnerability #17
Comments
Two things...
|
@timosupremo Thanks for pointing it out. I'd really appreciate your help with fixing this issue as I am not actively engaged in the project myself, actually only merging in changes from pull requests. (I switched to Ruby world full-time long time ago). |
Your script is vulnerable to an arbitrary file upload attack. A malicious user can get around the MIME type check simply by spoofing the MIME type in the POST data. This is further compounded as you do not check the file extension properly. Thus, an attacker can upload a .php script (or really, anything) to the web server so long as the MIME type meets the validation requirements.
The text was updated successfully, but these errors were encountered: