Is there any file extension which executes by itself or is considered malicious even if its at server?

I was able to bypass file upload restriction on an application. I uploaded a dummy php file on the server, I found the URL where it is on the server by looking at the response but it didn’t executed. It showed me the source c… Continue reading Is there any file extension which executes by itself or is considered malicious even if its at server?

Is storing files under a web server root unsafe if it is handled by PHP and blocked by the web server site configuration file?

Say you have a website which takes file uploads of a certain type and places them in a subdirectory (let’s call it “videos”) in the web root.

I have heard from various sources that trusting uploaded files is never safe, beca… Continue reading Is storing files under a web server root unsafe if it is handled by PHP and blocked by the web server site configuration file?

Risks of allowing users to upload PDF and XML files to be stored/retrieved from a DB (ASPNET MVC 5)

I’m modifying an ASPNET MVC 5 web site and a requirement is to allow users to upload an XML and PDF file.

The XML file will be used to layout text on the PDF based on variables coming from within the system.

I have a schema for the XML … Continue reading Risks of allowing users to upload PDF and XML files to be stored/retrieved from a DB (ASPNET MVC 5)