Microsoft IIS 3.0/4.0 Using ASP And FSO To Read Server Files Vulnerability

ID SSV:73137
Type seebug
Reporter Root
Modified 2014-07-01T00:00:00


No description provided by source.


The File System Object (FSO) may be called from an Active Server Page (ASP) to display files that exist outside of the web server's root directory. FSO allows calls to be made utilizing "../" to exit the local directory path.

An example of this syntax would be:

This vulnerability could be used to view the source code of ASP files or stream data into other ASP files on the web server.

' grab the file from the URL
FileName = Request.QueryString("file")

' create the filesystemobject and open the file
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.OpenTextFile(Server.MapPath(FileName))

' read the contents
ShowTheFreakinThing = ts.ReadAll

' display them
Response.Write ShowTheFreakinThing