I’m just going through a current project adding the necessary code to prevent SQL injection, XSS etc. However I was wondering how easy it would be to execute SQL injection via a file upload?
Does any one have any knowledge in this area?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should sanitize any user-supplied input. This includes $_FILES. For example, if you store the uploaded filename in a database, this could be exploited by an attacker.