Re: Let's exploit this

From: Tim (tim-pentest@sentinelchicken.org)
Date: Thu Aug 03 2006 - 00:35:14 EDT


> if you don't care about a js error you can even just end the script
> block and start again [assuming, of course, that we are actually
> _inside_ a script block and not a href or something similar]
>
> like so: FOO = '</script><script>alert("extra script blocks are
> cool.")</script><script>//'
>
> sure, you'll get one js error, but it doesn't really matter, as your
> code will still run.

Hey, you're right. I had a suspicion that this might work, and indeed
it does. I wasn't 100% sure, as browsers' parsing algorithms are so
incredibly complex, that the obvious may not work.

I think when I first came across this situation in an application, most
HTML special characters were actually encoded, except for apostrophes,
which were backslashed.

Anyway, I'll try to post a more difficult one next week.

thanks,
tim

------------------------------------------------------------------------------
This List Sponsored by: Cenzic

Concerned about Web Application Security?
Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
Choice Award from eWeek. As attacks through web applications continue to rise,
you need to proactively protect your applications from hackers. Cenzic has the
most comprehensive solutions to meet your application security penetration
testing and vulnerability management needs. You have an option to go with a
managed service (Cenzic ClickToSecure) or an enterprise software
(Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
help you: http://www.cenzic.com/news_events/wpappsec.php
And, now for a limited time we can do a FREE audit for you to confirm your
results from other product. Contact us at request@cenzic.com for details.
------------------------------------------------------------------------------



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:56:31 EDT