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 cool.")</script><script>//' sure, you'll get one js error, but it doesn't really matter, as your code will still run. -- mic ------------------------------------------------------------------------------ This List Sponsored by: CenzicConcerned 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.
------------------------------------------------------------------------------
Current thread:
- Let's exploit this Tim (Aug 02)
- Pen Test Novell 5.5 w/ groupwise ? Chris Serafin (Aug 02)
- Re: Pen Test Novell 5.5 w/ groupwise ? Tim (Aug 02)
- Re: Let's exploit this Michal Zalewski (Aug 02)
- Re: Let's exploit this James Harless (Aug 02)
- Re: Let's exploit this Serg B. (Aug 02)
- <Possible follow-ups>
- RE: Let's exploit this Krpata, Tyler (Aug 02)
- Re: Let's exploit this Tim (Aug 02)
- Re: Let's exploit this mikeiscool (Aug 02)
- Re: Let's exploit this Tim (Aug 02)
- Re: Let's exploit this Tim (Aug 02)
- Pen Test Novell 5.5 w/ groupwise ? Chris Serafin (Aug 02)