Topic: "Tuts4you, something not very harmful" (page 1 of 1)

1
Author Post
DigitalAcid
groupmastergroupmastergroupmaster
Whenever i visit a site, i usually try things like these:

http://www.tuts4you.com/user.php?"><marquee>DigitalAcidWasHere</marquee>

You can type anything after the "> and it will be shown on the site.
I tried using alert and document.write, but the site seems to filter out most of the special characters, like semicolon, comma etc. resulting in an "Access Denied" page =).
private message EMail
Bander
groupmastergroupmaster
Hmm, I'm unable to reproduce that. The site keeps url encoding everything.

I get access denied when I try a single quote.
Edited by Bander on 07.11.2007 04:14:07
private message EMail
DigitalAcid
groupmastergroupmastergroupmaster
It's a " (quotation mark ?) not 2 '...
private message EMail
moose
groupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I just copied this into the adress bar and it didn't work...
private message EMail Website
Bander
groupmastergroupmaster
Ok - let me be more specific :)

A double quote is url encoded before being echoed into the page and a single quote brings up "Access Denied"
private message EMail
DigitalAcid
groupmastergroupmastergroupmaster
I'm using IE...
Didn't try it yet with Firefox and Opera back then.
It seems it doesn't work with those 2.
private message EMail
moose
groupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
with ie it works ... strange

does the browser encode the url? why doesn't ie urlencode?
Edited by moose on 08.11.2007 13:47:25
private message EMail Website
theAnswer
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
PHP runs server-side, so it should not be browser-dependent.
Edited by theAnswer on 08.11.2007 16:57:37
private message
moose
groupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I thought (in fact I wrote) the same before I tried it out ...
private message EMail Website
quangntenemy
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
The problem is that FF and IE encode the url differently before sending them. Check the source :P
FF:
<form method="post" action="http://www.tuts4you.com/user.php?%22%3E%3Cmarquee%3EDigitalAcidWasHere%3C/marquee%3E">

IE:
<form method="post" action="http://www.tuts4you.com/user.php?&amp;quot;><marquee>DigitalAcidWasHere</marquee>">

IE seems to render the code incorrectly too :P
Edited by quangntenemy on 09.11.2007 00:50:07
private message EMail Website

Topic: "Tuts4you, something not very harmful" (page 1 of 1)

1