Home page logo

pen-test logo Penetration Testing mailing list archives

Re: Let's exploit this
From: mikeiscool <michaelslists () gmail com>
Date: Thu, 3 Aug 2006 11:03:21 +1000

On 8/3/06, Tim <tim-pentest () sentinelchicken org> wrote:
> Off the top of my head, I would put in an extra backslash, so that it
> would look like:
> myFunc('Nancy\\'); alert('xss'); ('s', 'hamster');

You've got the gist of it, but remember that all ' get backslashed.
You'd probably want to avoid further apostrophes after the first you
used to break out, or add the extra backslash in a way that won't screw
up your exploit code.

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

sure, you'll get one js error, but it doesn't really matter, as your
code will still run.

-- mic

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.

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]