source: https://www.securityfocus.com/bid/230/info
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: http://www.server.foo/showfile.asp?file=../../global.asa
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
' EOF
%> Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation