Penetration Testing mailing list archives
RE: Let's exploit this
From: "Krpata, Tyler" <tkrpata () bjs com>
Date: Wed, 2 Aug 2006 15:02:40 -0400
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'); -----Original Message----- From: Tim [mailto:tim-pentest () sentinelchicken org] Sent: Wednesday, August 02, 2006 8:57 AM To: pen-test () securityfocus com Subject: Let's exploit this Hello list, After a discussion with our moderator about list content, I decided I'll try to encourage some more in-depth technical discussion about the exploitation certain quirky bugs. So, here's one that I came across a while back. It is an exploitable XSS bug, but it isn't immediately obvious (at least it wasn't to me) how it can be exploited. Suppose we have a dynamically generated web page which contains the following line of JavaScript: myFunc('FOO', 'BAR'); In this page, the user can control both the values of FOO and BAR. In other words, this JavaScript is dynamically generated. Here's the catch: The values FOO and BAR are both checked for apostrophe (single quote) characters. Any instances of these are escaped with backslashes. For instance, if a user supplied values "Nancy's" and "hamster" for FOO and BAR, respectively, then the following line would be generated: myFunc('Nancy\'s', 'hamster'); Apostrophe is the only character checked for, in all it's variants (unicode?). Let us suppose an attacker can inject arbitrary binary data in those strings. Now, like I said, I know of one way to exploit this behavior to inject almost arbitrary JavaScript. I'm hoping this will prompt an interesting discussion on the topic of browser behavior and perhaps learn of other ways it can be exploited. cheers, 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 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. ------------------------------------------------------------------------------
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)