Author | Post | |||
DigitalAcid |
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 =). |
|||
06.11.2007 11:49:50 |
|
|||
Bander |
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 | ||||
07.11.2007 04:03:37 |
|
|||
DigitalAcid |
It's a " (quotation mark ?) not 2 '... |
|||
07.11.2007 13:47:27 |
|
|||
moose |
I just copied this into the adress bar and it didn't work... |
|||
07.11.2007 14:41:51 |
|
|||
Bander |
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" |
|||
08.11.2007 03:49:25 |
|
|||
DigitalAcid |
I'm using IE... Didn't try it yet with Firefox and Opera back then. It seems it doesn't work with those 2. |
|||
08.11.2007 12:04:41 |
|
|||
moose |
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 | ||||
08.11.2007 13:44:28 |
|
|||
theAnswer |
PHP runs server-side, so it should not be browser-dependent. |
|||
Edited by theAnswer on 08.11.2007 16:57:37 | ||||
08.11.2007 16:57:17 |
|
|||
moose |
I thought (in fact I wrote) the same before I tried it out ... |
|||
08.11.2007 17:43:35 |
|
|||
quangntenemy |
The problem is that FF and IE encode the url differently before sending them. Check the source 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?&quot;><marquee>DigitalAcidWasHere</marquee>"> IE seems to render the code incorrectly too |
|||
Edited by quangntenemy on 09.11.2007 00:50:07 | ||||
09.11.2007 00:49:17 |
|