title: File upload security Concern
body: <p>I am having a web form available to public, which has file upload capability. Now files are either saved on web server or sent out as attachment in an email.  We are having restriction on size i.e 15MB and extensions of file being uploaded. Our SMTP server is on same web server. I have concern about security, as anyone can upload malicious files and can have impact on our production web server. </p>
  
  <p>What are the risks I will be having by such file upload control available to public? Is there anyway someone can execute malicious script on web server by uploading malicious file.</p>
  
  <p>I did some research and found out following points</p>
  
  <ol>
  <li>If I sent out a file as an attachment in an email, this file will be stored for temporary period in Temporary ASP .Net folders, and once email is sent this will get deleted.</li>
  <li>You can rename a file before saving them on file system.</li>
  <li>You can save file on different location as your website</li>
  <li>You can have some sort of real time virus check. I am not sure how you can do that. I was reading about some command line virus scan. But not sure if I really need that.</li>
  </ol>
  
  <p>These are just few points, but I would like to know about any blind spots in file upload.</p>