Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Serverside script injection?

From: Marco Aldegheri <marco2(at)argentea.it>
Date: Mon Jan 13 2003 - 08:51:58 EST

I found an example "built to duplicate some of PHPs built in functionality" is suggested in:
www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=4&txtCodeId=6278 where the VarsFromForm function captures the querystring and executes some code based on it:

Public Sub VarsFromForm

     For Each item In request.form
     	execute(item & "=""" & Replace(request.form(item), Chr(34), 
Chr(34) & Chr(34)) & """")
     Next
     For Each item In request.QueryString
     	execute(item & "=""" & Replace(request.QueryString(item), Chr(34), 
Chr(34) & Chr(34)) & """")
     Next

End Sub

In a 'normal' use if the page is called like: xyz.asp?a=1&b=2
'a' and 'b' variables would be created and assigned values "1" and "2".

If this page is called with a querystring like: xyz.asp?response.write%20Application("password"):Pippo=1

the command [response.write Application("password")] is executed and the value "1" is assigned to the variable Pippo ...

Best regards,
Marco Aldegheri, CISSP

joh ket wrote:
>
> Hi there.
>
>
> I have a question regarding serverside script injection. Does it exist -
Received on Mon Jan 13 10:26:21 2003

Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:47 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library