I'll try to keep the backstory short on this. We have an outside vendor that has developed a web-based application for one of our departments. The application allows the logged on user to upload files into a directory that is accessible to the web server. In other words, you can upload a file, and then point your browser at that file. We have some concerns about this, so I decided to set up a test machine to test a potential vulnerability.
I have set up IIS 6.0 on a virtual machine running a fully patched evaluation version of Windows Server 2003 and I set some ridiculously wide open permissions on the folder and whipped up an ASP.NET application that lets an anonymous user upload any file to the wwwroot directory. I have verified that I was able to upload cmd.exe and nc.exe to the wwwroot directory.
The problem is, I can't seem to do anything with those files that I uploaded. I have made sure that everyone has execute permission on the wwwroot folder, but I still can't seem to get a reverse shell. I can't even seem to get a directory listing. I tried putting this into my browser:
http://134.29.32.249/cmd.exe?dir+c:\
but I keep getting a page cannot be displayed error. I also tried:
http://134.29.32.249/nc.exe?-l+-p+1001+-e+cmd.exe
which also hasn't worked. Does anyone know IIS well enough to tell me what I've done wrong here? Is there some setting that I haven't opened up so that the web server can run the exe? Is there something wrong with the http request that I've sent to the server?