Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: CGI script security: putting untainted input into a qr//

by eXile (Priest)
on Apr 14, 2005 at 02:38 UTC ( [id://447640]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI script security: putting untainted input into a qr//
in thread CGI script security: putting untainted input into a qr//

thanks!

I'm only wondering about the cross-site-scripting because I'm printing text/plain, so in theory no html is shown/executed, or is there?

  • Comment on Re^2: CGI script security: putting untainted input into a qr//

Replies are listed 'Best First'.
Re^3: CGI script security: putting untainted input into a qr//
by merlyn (Sage) on Apr 14, 2005 at 02:39 UTC
Re^3: CGI script security: putting untainted input into a qr//
by MidLifeXis (Monsignor) on Apr 14, 2005 at 17:36 UTC

    IIRC, IE will try to do the right thing (for its definition of the right thing). Even if you make it text/plain, I think it may render it as HTML if it looks like HTML.

    Update: Just checked this, and yes it does. The following code, in s.txt, renders as HTML in IE.

    <A HREF="/">Root</A> <IMG SRC="/logo.jpg">

    --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://447640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-19 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found