Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- From: CnCxzSec衰仔 <cncxzhack@xxxxxxxxx>
- Date: Mon, 8 Aug 2011 15:38:09 +0800
a good example to see the "incorrect handling":
<!--[if<img/onerror=alert(1) src=]> //executed.
<!--[i<img/onerror=alert(1) src=]> //not executed.
On Mon, Aug 8, 2011 at 2:23 PM, Christian Sciberras <uuf6429@xxxxxxxxx>wrote:
I think it's worth to note that MSIE expects an *expression* in the_______________________________________________
conditional (it's a feature).
Hence even if you disable direct XSS, there still would probably be
more ways an *expression* could be used to write HTML code.
As such, I don't think they should be "fixing" this (since it is
intended), but rather warn developers about it's existence.
On the other hand, if developers are writing unfiltered HTML inside
this conditional, I think there are worse issues than this.
I've always believed in the philosophy of making browsers work as
expected instead of expecting them to comply and fix my issues.
Especially if the browser in question is Internet Explorer ;-).
Cheers,
Chris.
On Mon, Aug 8, 2011 at 5:59 AM, CnCxzSec衰仔 <cncxzhack@xxxxxxxxx> wrote:
this is a normal use, but <!--[if<img/onerror=alert(1) src=]> is anunnormal
use. IE should regard this as an HTML comment instead of adownlevel-hidden
comment, so the HTML tags inside the COMMENT should not be evaled.wrote:
On Mon, Aug 8, 2011 at 11:30 AM, Andrew Farmer <andfarm@xxxxxxxxx>
attack
On 2011-08-07, at 19:53, CnCxzSec衰仔 wrote:
hi all, here is an interesting trick to perform an xss attack with IE
browsers.
some rich text applications such as email and blog, may provide HTML
uses
but have a policy to block the on-event execution to prevent the XSS
attack.
However, this applications may also allow the HTML notes uses,for
instance
"<!-- -->"
Any such applications are likely to also be vulnerable to a simpler
based on "downlevel-hidden" conditional comments:
<!--[if IE]>
<script>anything you want can go here, presumably</script>
<![endif]-->
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
- Follow-Ups:
- Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- From: Christian Sciberras
- Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- References:
- [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- From: CnCxzSec衰仔
- Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- From: Andrew Farmer
- Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- From: CnCxzSec衰仔
- Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- From: Christian Sciberras
- [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- Prev by Date: [Full-disclosure] NiX Online Web Proxy with pentest mode?
- Next by Date: Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- Previous by thread: Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- Next by thread: Re: [Full-disclosure] IE handling the HTML notes incorrectly may lead to XSS attacks
- Index(es):
Relevant Pages
|