IIS 6 shell



hi folks, first off all sorry about my typing errors cause i am using
links at the moment :D (Gentoo installing here... :P)

i am doing a penetration test in a costumers application i have found
many bugs such as XSS and some SQL injections. All those bugs are now
corrected, but i have found another one, pay attention:

The server is Running Windows Server 2003 and IIS 6 fully patched,
only ports 80 and 443 are exposed to world wide.
in the application we have an upload form to upload pictures to the
server, this pictures will be the users avatars in the application
"forum"
the problem is that the verification of the uploaded files is made in
client side by a javascript, worse, they only check the file extension
and not the content type. As you read previously, i am using links, so
bypassing the poor javascript security was easy, since links
javascript support is also poor and the script did not run properly
and allow me to upload any file including .exe .txt .js .php .aspx
(except asp!)

yep, thats it i was not allowed to upload an .asp script cause that
verification is made at server side. dont know why... however i can
upload files such as aspx and php, but the server seems to have a
"strange" behavior.

if i upload a php script, all the files in that directory are deleted,
once again, dont know why...

if i upload an aspx script with the content <% response.write("hey
dude, asp works!") %> it runs the script
but if i create a more complex script for listing directories or copy
files or other things it gives me an "Server Error in "/" Application.
Runtime error bla bla bla.."

all the scripts are correctly written, being a Linux user at all, i
havent much asp knowlege so i just download them from one of the many
asp site tutorials found on google

another thing, it seems that the application is written in asp (not
aspnet) the page extensions are .asp and they do not allow asp uploads
remeber?

in my opinion i think that the problem is

i write an asp script with aspnet extension and the server thinks that
is a aspnet script and give me the error. however if i write a more
complex script in aspnet, includind fileSystemObject and other it
gives me the same error descbribed previously.

Any clue on get a shell?
Tnks in advice.

------------------------------------------------------------------------
This list is sponsored by: Cenzic

Top 5 Common Mistakes
in Securing Web Applications
Find out now! Get Webinar Recording and PPT Slides

www.cenzic.com/landing/securityfocus/hackinar
------------------------------------------------------------------------



Relevant Pages

  • Re: Send and recive files
    ... > I've created a submit form where the user can select a file to upload. ... > When the user press the button for submit the selected file, how my asp ... > How can i send file to the client? ... - When I have to send file from server to client, ...
    (microsoft.public.inetserver.asp.general)
  • Re: File Upload - Security Issues
    ... You want to upload a file for what reason and you do ... file and what pitfalls you see re: security might be helpful on this end?! ... files to an IIS server that doesn't have MS Office actually installed? ... 2* Upon submit this is submitted to an ASP page that then (using the XML ...
    (microsoft.public.scripting.vbscript)
  • Re: edit asp site?
    ... Can I use one on ASP based site? ... change and upload if that will work but do not ... Definately use a text editor ... Set your system up as a web server, ...
    (alt.html)
  • Re: Order form with javascript & php files will not work in FrontP
    ... Are you working local and publishing or live on the server? ... It's possible that editing your files local and then publishing is somehow ... > The script files are separate files from the actual form file. ... upload these files to my site ...
    (microsoft.public.frontpage.client)
  • RE: executing scripts within a web browser control under the syste
    ... server hosting the ASP pages as a trusted site for all users on the machine ... There are no ActiveX controls on the ASP page ... Write a test.js script file in local driver D:\. ... launches a console process under System Account. ...
    (microsoft.public.dotnet.general)