amitbehere
06-29-2004, 11:13 PM
Hi all,
I am a beginner at ASP so I do not understand the security implications however I have the following problem
I am submitting a call to an asp with a parameter call image that is a folder on the system
http://mymachine/test.asp?image=c:/Images/test.jpg
The value of parameter "image" comes from a SQL database.
At the time of exec, it is translated to the following
http://mymachine/test.asp?image=c%3A%2FImages%2Ftest.jpg which I understand are ASCII values.
I need to pass in a path to a shared folder on some other machine in my network.
eg.
http://mymachine/test.asp?image=\\sharedmachine\sharedfolder\sharedfile.jpg
However if I set image = \\sharedmachine\sharedfolder\sharedfile.jp in the SQL database it does not work
also escaping the backslash \\ does not work
Also using ASCII value of \ does not work
%5C%5csharedmachine
This not only not working...its also crashing my IIS.
"dllhost.exe error: Instruction referred mem address 0000x0"
I am using Windows environment XP professional with IIS 5.1
Can this be even done? If yes, how ? I will be most grateful for any help.
Thanks in advance.
-Amit Behere
Software Engineer
Digital Map Products
I am a beginner at ASP so I do not understand the security implications however I have the following problem
I am submitting a call to an asp with a parameter call image that is a folder on the system
http://mymachine/test.asp?image=c:/Images/test.jpg
The value of parameter "image" comes from a SQL database.
At the time of exec, it is translated to the following
http://mymachine/test.asp?image=c%3A%2FImages%2Ftest.jpg which I understand are ASCII values.
I need to pass in a path to a shared folder on some other machine in my network.
eg.
http://mymachine/test.asp?image=\\sharedmachine\sharedfolder\sharedfile.jpg
However if I set image = \\sharedmachine\sharedfolder\sharedfile.jp in the SQL database it does not work
also escaping the backslash \\ does not work
Also using ASCII value of \ does not work
%5C%5csharedmachine
This not only not working...its also crashing my IIS.
"dllhost.exe error: Instruction referred mem address 0000x0"
I am using Windows environment XP professional with IIS 5.1
Can this be even done? If yes, how ? I will be most grateful for any help.
Thanks in advance.
-Amit Behere
Software Engineer
Digital Map Products