Slashdot Mirror


New Remote Flaw In 64-Bit Windows 7

Trailrunner7 writes "Researchers are warning about a new remotely exploitable vulnerability in 64-bit Windows 7 that can be used by an attacker to run arbitrary code on a vulnerable machine. The bug was first reported a couple of days ago by an independent researcher and confirmed by Secunia. In a message on Twitter, a researcher named w3bd3vil said that he had found a method for exploiting the vulnerability by simply feeding an iframe with an overly large height to Safari. The exploit gives the attacker the ability to run arbitrary code on the victim's machine."

154 of 284 comments (clear)

  1. So all 5 of you running Safari on Windows by elrous0 · · Score: 5, Funny

    Watch out!

    --
    SJW: Someone who has run out of real oppression, and has to fake it.
    1. Re:So all 5 of you running Safari on Windows by lgw · · Score: 4, Insightful

      So, wait, is this a Win7 exploit or a Safari exploit?

      --
      Socialism: a lie told by totalitarians and believed by fools.
    2. Re:So all 5 of you running Safari on Windows by SirBitBucket · · Score: 5, Insightful

      Sounds like it is an exploit of an issue with a windows component, but it is currently only known to be exploitable through Safari. Kind of like you could hotwire a car (windows) if you happen to have replaced your windows with Saran wrap (Safari), and can get right through them.

    3. Re:So all 5 of you running Safari on Windows by Synerg1y · · Score: 1, Interesting

      An iframe is interpreted by the safari browser which has trust obviously (it's an .exe), so it's a safari vulnerability, article is mislabeled, or author never took sec 101.

      Also 5 users is very generous, I have yet to see one, and I've seen my share. Most web developers make their salt without ever having to test on this browser for example.

    4. Re:So all 5 of you running Safari on Windows by jedidiah · · Score: 4, Insightful

      It shouldn't matter.

      The OS simply should not melt because Apple can't code it's way out of a wet paper bag.

      A real OS should simply not fall apart just because the users or programmers are idiots or malicious.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    5. Re:So all 5 of you running Safari on Windows by kvvbassboy · · Score: 5, Informative

      Quote from Secunia advisory:

      A vulnerability has been discovered in Microsoft Windows, which can be exploited by malicious people to potentially compromise a user's system. The vulnerability is caused due to an error in win32k.sys and can be exploited to corrupt memory via e.g. a specially crafted web page containing an IFRAME with an overly large "height" attribute viewed using the Apple Safari browser. Successful exploitation may allow execution of arbitrary code with kernel-mode privileges

      Safari is apparently the only currently known browser where this attack could be vectored from.

    6. Re:So all 5 of you running Safari on Windows by MikeyO · · Score: 5, Insightful

      Perhaps both, definitely a bug in win7. If something the unprivileged safari process does crashes the kernel, we know there must be a bug in win7.

    7. Re:So all 5 of you running Safari on Windows by Luckyo · · Score: 3, Insightful

      That's going to be one hell of a locked down OS. Will it be able to run anything at all?

    8. Re:So all 5 of you running Safari on Windows by hAckz0r · · Score: 3, Interesting

      5 people? Unfortunately there are a LOT of people who have to run iTunes for their iPod/iPad/iPhone in order to get updates. Those updates usually try to install Safari along with the rest of the patches. Whether the user ever actually uses Safari is another question all together. I know I have not, but I often get tired of trying to unclick the selection boxes to not have it install every time there are updates. Most people will likely just give up and let Safari install even though it takes more download time. So, I bet its at least 6 people.

    9. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 3, Insightful

      Well so much for every operating system ever created.

    10. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 2, Informative

      FTFA:

      "A vulnerability has been discovered in MicrosWindows 7oft Windows, which can be exploited by malicious people to potentially compromise a user's system. The vulnerability is caused due to an error in win32k.sys and can be exploited to corrupt memory via e.g. a specially crafted web page containing an IFRAME with an overly large "height" attribute viewed using the Apple Safari browser. Successful exploitation may allow execution of arbitrary code with kernel-mode privileges," the Secunia advisory said.

      So it's a windows bug, and the first way to access it that's been found is through safari.

    11. Re:So all 5 of you running Safari on Windows by OverlordQ · · Score: 5, Informative

      The vulnerability is caused due to an error in win32k.sys and can be exploited to corrupt memory via e.g. a specially crafted web page containing an IFRAME with an overly large "height" attribute viewed using the Apple Safari browser.

      No matter what Safari does, it shouldn't cause a crash in win32k.sys, so I'd go with Windows error via Safari error since there's probably other vectors that can also cause a crash in the same place.

      --
      Your hair look like poop, Bob! - Wanker.
    12. Re:So all 5 of you running Safari on Windows by tgd · · Score: 4, Interesting

      64-bit windows requires no-execute on data pages (DEP), so there's no route you can cause data corruption and end up with executable code unless you have code running in the kernel to change the flags on the pages in memory.

      If this is a theoretical exploit, the authors of it may not be that familiar with 64-bit Windows 7, or are running on a developer machine they explicitly disabled DEP.

    13. Re:So all 5 of you running Safari on Windows by rubycodez · · Score: 1

      wrong. This is made possible by data overflowing in using win32k.sys causing memory corruption. Safari is just showing the problem, other wares using the .sys could do it too

    14. Re:So all 5 of you running Safari on Windows by devitto · · Score: 1

      Nope - everyone running Win7/64 bit watch out - because if you can trigger it with Safari, you can trigger it with other mechisms, and rather than crash, get total access to the kernel - e.g. be able to write raw sectors, access other hardware and basically bypass all security.

      The point is that if dropped into a advert pushed out into lots of ad syndicates, it could bypass all antivirus, DEP and other security to infect millions of machines in minutes. Once running in the kernel, it can unhook antivirus, and basically make a rebuild necessary to get the machine back - no amount of hitting 'update' will help.

    15. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 1

      I had that OS once. It ran Pong.

    16. Re:So all 5 of you running Safari on Windows by Moryath · · Score: 3, Informative

      Sounds like it is an exploit of an issue with a windows component, but it is currently only known to be exploitable through Safari.

      If it's something only exploitable through Safari, then it's probably a Safari bug! Let's take a look at the original security advisory:

      The vulnerability is caused due to an error in win32k.sys and can be exploited to corrupt memory via e.g. a specially crafted web page containing an IFRAME with an overly large "height" attribute viewed using the Apple Safari browser.

      So, they blame win32k.sys - but apparently the actual bug is that you can cause something resembling a buffer overflow by feeding Safari a ridiculously large bit of data as an iFrame.

      Could go either way. Given that no other browser is currently deemed vulnerable, it sounds more like a Safari bug to me - just like the various PDF exploits were much more an Adobe than Microsoft responsibility.

    17. Re:So all 5 of you running Safari on Windows by GIL_Dude · · Score: 5, Informative

      It would be more correct to say the vulnerability (flaw) is in the windows kernel and the only currently known exploit is through the safari browser. There are decent odds that some other vector will be found through which to exploit this. But for now it looks like the exploit through safari uses a lack of correct input sanitization (in safari) in order to exploit the Windows kernel vulnerability. It would probably be possible to craft an exe to do privilege elevation using this kernel flaw by passing similar bad parameters to the kernel - but of course local elevation of privilege is much less of a threat than a true drive by like this exploit through safari.

    18. Re:So all 5 of you running Safari on Windows by lgw · · Score: 2, Interesting

      Well, there may be some Safari bug that allows an oversize iframe to be insterpreted as a script and interpreted, giving the place where the code can run, followed by some unrelated local priviledge escalation bug in Win7 for it to take advantage of.

      Heck, security advisories come in "tweets" now? We're supposed to guess the problem from the first 140 characters of explanation, I suppose.

      --
      Socialism: a lie told by totalitarians and believed by fools.
    19. Re:So all 5 of you running Safari on Windows by TheRealMindChild · · Score: 2

      win32k.sys is responsible for Windows window manager, keyboard input, and GDI among other things. So you are knee deep in it regardless what you do. Apparently this oh so important system file is quite familiar with being exploited. At this rate, christ, at least do a real code audit of the friggin file.

      --

      "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    20. Re:So all 5 of you running Safari on Windows by pclminion · · Score: 5, Informative

      Modern exploit techniques provide multiple ways around DEP. Obviously DEP is something that should always be used if the hardware supports it (and the lack of support in older processors can in some sense be considered a design flaw) but it's no panacea against exploits. For example see return-to-libc attacks and the return-oriented programming techniques which generalize it. Even then, those techniques are based on stack smashing attacks, which are not the only kind of attack possible.

    21. Re:So all 5 of you running Safari on Windows by Guy+Harris · · Score: 5, Insightful

      The vulnerability is caused due to an error in win32k.sys and can be exploited to corrupt memory via e.g. a specially crafted web page containing an IFRAME with an overly large "height" attribute viewed using the Apple Safari browser.

      So, they blame win32k.sys - but apparently the actual bug is that you can cause something resembling a buffer overflow by feeding Safari a ridiculously large bit of data as an iFrame.

      Could go either way.

      Should go both ways.

      Apple should fix the Safari bug so it doesn't mishandle IFRAMEs with "overly large" "height" attributes.

      Microsoft should fix the in-kernel graphics code so you can't use it to break into the system.

    22. Re:So all 5 of you running Safari on Windows by icebike · · Score: 1, Insightful

      It didn't cause a crash, it allowed the execution of arbitrary code, which is probably worse.

      We don't even know if the exploit occurred in the windows API, or some of the crapware that Safari drags along with it.
      None of the other WebKit browsers can cause the same exploit so it may well not be in the core of safari at all, but rather in one of the helper drivers that get installed when you install Safari and iTunes, like Bonjour or ipod helper processes. Some of those things can't be easily sandboxed because they install as drivers.

      This isn't the first instance of Safari being a vector to a windows vulnerability.

      --
      Sig Battery depleted. Reverting to safe mode.
    23. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 1

      Nope - everyone running Win7/64 bit watch out - because if you can trigger it with Safari, you can trigger it with other mechisms, and rather than crash, get total access to the kernel - e.g. be able to write raw sectors, access other hardware and basically bypass all security.

      I take it you have a proof of concept that can you show us? Or are you just talking out of your ass?

    24. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 5, Informative

      DEP is regularly beaten. The key is called "return oriented programming" (http://en.wikipedia.org/wiki/Return-oriented_programming), essentially oldschool "return to libc" on speed. It's a lot of painful work, but that's what it takes these days.

    25. Re:So all 5 of you running Safari on Windows by Merk42 · · Score: 4, Funny

      That's a relief, I'm not running MicrosWindows 7oft Windows

    26. Re:So all 5 of you running Safari on Windows by geekoid · · Score: 2

      Any exploit that gives control to an unauthorized user so the can run arbitrary code is a OS exploit.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    27. Re:So all 5 of you running Safari on Windows by hairyfeet · · Score: 4, Informative

      Well I'd be worried about Firefox as well, because the malware guys have figured out how to get around their XSS by using a hidden iFrame, which is why if you have any porn watching friends or relatives that use Yahoo Mail + FF you may have been getting spam from them lately. Don't know if it works on FF 9 and since I'm officially on vacation until the middle of next week I'm not gonna be loading a spare box with it and surfing porn vid sites to find out as I got a ton of games and a 6 core and intend to enjoy them! Just to be safe though be sure anybody you know with FF upgrades to the latest.

      Since we are on security allow me to say why I wouldn't consider either Safari OR Firefox a suitable browser for Widows 7: Lack of low rights mode. I bet the reason you aren't seeing this on IE nor on the Chromium based (Chrome, Chromium, Dragon, SWIron) is that they support the browser running in low rights mode and that is in fact their default behavior. Now considering that low rights mode has been around for nearly 5 years now there really is no excuse for a modern browser not to support it, especially when as we all know running with least permissions is just good security practice.

      So I would say if you are on Safari or Firefox or any other browser other than the Chromium based above look to see if your browser is running in low rights mode. If it is not switch browsers and be sure to drop the developers a line and tell them WHY you are switching away from their browser. It seems like doing the switch for the right reasons (increasing the user's security) will never happen so maybe if enough folks tell them "we won't use your browser because" then they will get off their asses and support this common sense feature.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    28. Re:So all 5 of you running Safari on Windows by Dog-Cow · · Score: 2

      Neither the iTunes Helper nor Bonjour are drivers.

    29. Re:So all 5 of you running Safari on Windows by boley1 · · Score: 1

      Correction: There are 6 of us.

    30. Re:So all 5 of you running Safari on Windows by jessehager · · Score: 1

      Don't forget all of the other software out there that uses the same Webkit rendering engine as Safari. There could be many more vulnerable programs. And many more users at risk.

      Since win32k.sys is the kernel mode driver portion of the win32 subsystem, any exploit that runs in it runs in kernel mode. Very nasty.

    31. Re:So all 5 of you running Safari on Windows by Dog-Cow · · Score: 1

      You are an unmitigated idiot. It's completely logical to state that a kernel bug can be exploited by means other than the one vector used to date. The only question is whether another vector will be found, no whether it exists.

    32. Re:So all 5 of you running Safari on Windows by Culture20 · · Score: 1

      there are a LOT of people who have to run iTunes for their iPod/iPad/iPhone in order to get updates. Those updates usually try to install Safari along with the rest of the patches.

      It actually installed Safari once without asking, IIRC.

    33. Re:So all 5 of you running Safari on Windows by EdIII · · Score: 1

      I'm not gonna be loading a spare box with it and surfing porn vid sites

      Well you get right on that. Let us know how the security "research" turns out Wally.

    34. Re:So all 5 of you running Safari on Windows by Tanktalus · · Score: 1

      Actually, please don't.

    35. Re:So all 5 of you running Safari on Windows by jedidiah · · Score: 1

      Major studio games will be out, but pretty much everything else will still be on the table.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    36. Re:So all 5 of you running Safari on Windows by the_B0fh · · Score: 1

      You are shitting me right? DEP can be trivially disabled - google for more information.

      I think you're drank too much koolaid, much like the Microsoft security guy who told us "Windows 2008R2 64 bit will not load unsigned drivers, and will check itself every 15 minutes and bluescreen if it finds one".

      Bull fucking shit - we found a very nasty little one that even Symantec couldn't find.

    37. Re:So all 5 of you running Safari on Windows by the_B0fh · · Score: 1

      OpenBSD normally doesn't get this kind of exploits. I think there's been one remote exploit historically.

      And plenty of people use openbsd as their desktops.

    38. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 2, Insightful

      Depends on the context that that code runs in. If the arbitrary code is running under the same context as the app, then it's an app exploit. If the exploit is able to run something in an Administrator or kernel context, then that's an OS exploit.

    39. Re:So all 5 of you running Safari on Windows by AvitarX · · Score: 1

      Isn't this defined as a local exploit?

      It sounds to me like a local privilege escalation bug. For home users this is worse, since most are protected from remote exploits via a stateful firewall.

      I assume someone can write a separate program to do this without exploiting the Safari bug too. But I don't think browser bugs allowing arbitrary code execution are considered "remote" and I would assume the Windows bug could just as easily be triggered by a trojan, or any other similar bug in any software that reads things (for example, all the bugs that acrobat had recently).

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    40. Re:So all 5 of you running Safari on Windows by Forty+Two+Tenfold · · Score: 2, Funny

      Hey, broken windows are bad for society and good for the economy. Therefore, good economy is bad for society. QED. What was this thread about, again?

      --
      Upward mobility is a slippery slope - the higher you climb the more you show your ass.
    41. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 2, Insightful

      You're right, they're malware.

    42. Re:So all 5 of you running Safari on Windows by AC-x · · Score: 3, Informative

      There are 2 exploits here, one is in Safari which allows someone to at least crash the machine, the other is in win32k.sys which allows a user space program to take over the kernel (privilege escalation bug)

      The win32k.sys bug is far more serious as it would give any program even run under a limited user account complete access to the system

    43. Re:So all 5 of you running Safari on Windows by cbhacking · · Score: 3, Informative

      It's been audited, multiple times. The problem is that it's both truly immense (hundreds of public entry points, to say nothing of its internal functions) and a mishmash of code dating back to the early days of NT (NT 4 at least, maybe the 3.x versions too) up through new code for Win8. I have no idea how many source files compile into it. I got a (legit and very nearly complete) copy of the Win2K source for a university project, and even in that version (now 4 releases old), Win32k.sys was a terrifying thing to behold.

      I once heard a Microsoft employee talking about the Stuxnet malware. He joked that it goet in through "this vulnerability called Win32k.sys - I mean, this vulnerability *in* win32k.sys..." They're quite aware of its problems. However, even when a bug is found, it's extremely difficult to fix it safely (I'm told that the average number of regressions during fixing a bug they find is greater than two, and each of those may cause more regressions when you try to fix them).

      --
      There's no place I could be, since I've found Serenity...
    44. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 1

      LOL, "kernel bug". It's painfully obvious that you haven't got a fucking clue, so I'll ask again, proof?

      Go learn about the scientific process, dipshit. Oh wait, you're a religious nutjob so you don't believe in science.

    45. Re:So all 5 of you running Safari on Windows by yuhong · · Score: 1

      (NT 4 at least, maybe the 3.x versions too)

      Win32k was introduced in NT4. Previously all the stuff was in user mode (in CSRSS).

    46. Re:So all 5 of you running Safari on Windows by hawkinspeter · · Score: 1

      Thanks for that, I was worried for a minute that you might be susceptible.

      --
      You're a temporary arrangement of matter sliding towards oblivion in a cold, uncaring universe
    47. Re:So all 5 of you running Safari on Windows by Kalriath · · Score: 1

      But they are services running with system privileges. That makes them almost as dangerous as drivers if they are poorly coded.

      --
      For a site about things like basic rights, Slashdot users sure do like to censor "dissent".
    48. Re:So all 5 of you running Safari on Windows by Gutboy · · Score: 1

      It didn't cause a crash, it allowed the execution of arbitrary code,

      No it didn't. Read the advisory again and note the part that says (emphasis mine)
      "... Successful exploitation may allow execution of arbitrary code with kernel-mode privileges"

    49. Re:So all 5 of you running Safari on Windows by Anonymous Coward · · Score: 1

      Since we are on security allow me to say why I wouldn't consider either Safari OR Firefox a suitable browser for Widows 7: Lack of low rights mode. I bet the reason you aren't seeing this on IE nor on the Chromium based (Chrome, Chromium, Dragon, SWIron) is that they support the browser running in low rights mode and that is in fact their default behavior

      Bug in Kernel Code.
      KERNEL CODE.

      Anything which exploits code in the Kernel is the COMPLETE opposite of "low-rights". If anything, this should give you the ability to smash your way out of low-rights mode, straight into LocalSystem (More rights than administrator).

      The Bug seems to be something like InvokeKernel("CreateBitmap", iframe_width, iframe_height) which causes a stack smash in the kernel for some reason when iframe_height is really large. [No that isn't a real API, I don't think the Win32k.sys functions are documented, they are invoked indirectly via GDI32 and USER32 DLLs]

      P.S. Why is image processing in the kernel at all, you ask? Beats me, ask MS why they put [extremely complicated] FONT processing in the kernel as well. Apparently, the idea of doing the hard stuff in userspace and only the really important, needs to be fast stuff in the kernel is a chronic design failure.

    50. Re:So all 5 of you running Safari on Windows by ILongForDarkness · · Score: 1

      Hmm yep seems rare enough except: Bootcamp installs I think it is still optional but one of those annoying on the list of updates when you install the drivers for a Mac after installing windows. So ... probably a disproportionate number of Macs running Windows are vulnerable. We leads my evil genius to be screaming in my head: "Its been years since MS and Apple have collaborated to bring users the vulnerablities they truly wanted: just in time for Christmas. Think Different (than you intended)."

    51. Re:So all 5 of you running Safari on Windows by hairyfeet · · Score: 1

      Don't really understand low rights mode there do you MR AC? the whole point is the combo of ASLR and DEP with low rights mode means they CAN'T be doing any buffer overflows because they simply can't get enough rights to run the code. hell just for the fun of it when I recently had a box I was gonna have to wipe anyway i TRIED to get it infected. i turned off ABP, made sure there wasn't a functional AV, and went nuts on clicking every link i could find on "Look at teh titties!" topsites and other sources of malware. End result? Nothing, zip nada squat. oh they managed to crash the browser a few times but that was it. Then I tried the same trick with FF 7 which of course FF doesn't support low rights mode and the machine ended up with more than 60 new malware nasties running by the time I quit.

      So what you are trying to claim simply doesn't work because you just can't pull it off. you can crash the browser, but that'll be all you'll be able to do as you have no idea where in memory to target and can't get high enough rights to do much of anything. So you might as well be saying "if I grew wings out of my ass i could fly over your house and drop a rock on you and KILL YOU!" which i'm sure you could be I REALLY want to see you pull that first part off friend, because i personally don't see it happening.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    52. Re:So all 5 of you running Safari on Windows by phantomfive · · Score: 1

      Two.

      --
      "First they came for the slanderers and i said nothing."
    53. Re:So all 5 of you running Safari on Windows by cgenman · · Score: 3, Interesting

      Microsoft should fix the in-kernel graphics code so you can't use it to break into the system.

      As a game developer, I need graphics code to be low level, fast, and insecure. There are times I just need it to be a rocketship without handrails.

      If there is a way to secure it without sacrificing speed, that's great! But doing a great deal of error checking on that level? Leave me some insecure route to blitting billions of bits to the screen without guardrails please.

    54. Re:So all 5 of you running Safari on Windows by Guy+Harris · · Score: 3, Insightful

      Microsoft should fix the in-kernel graphics code so you can't use it to break into the system.

      As a game developer, I need graphics code to be low level, fast, and insecure. There are times I just need it to be a rocketship without handrails.

      If there is a way to secure it without sacrificing speed, that's great! But doing a great deal of error checking on that level? Leave me some insecure route to blitting billions of bits to the screen without guardrails please.

      Sure, as long as 1) only the applications that absolutely positively need this do their graphics through that API and other apps can't even get at that API under any circumstances (so if the app has a bug nobody can inject code to enable it) and 2) applications that do can be marked as "DANGER DANGER WILL ROBINSON IF THIS APP HAS A BUG YOU MIGHT BE SERIOUSLY PWNED". There might be a tradeoff between your requirements and the requirements of security, and the best resolution for that tradeoff might not be in your favor....

    55. Re:So all 5 of you running Safari on Windows by fast+turtle · · Score: 2

      The problem is that DEP by default is not enabled on all applications. It's only enabled on apps that specifically request it. Safari/Firefox/Acrobat/Flash do not enable it fully.

      In order to do so, you need to change the DEP behavior to enable it for all programs except those specifically excluded. I did this when I installed Win7 and have had little to no issues with DEP except for a game written for Win95.

      --
      Mod me up/Mod me down: I wont frown as I've no crown
    56. Re:So all 5 of you running Safari on Windows by shutdown+-p+now · · Score: 1

      Right now it's only a BSOD (i.e. a crash in the kernel), with no known way to execute arbitrary code. The advisory says "possible code execution", because that's what any crash like potentially is - especially if it's caused by stack corruption.

      And yes, there's no doubt that the problem is in Windows itself. It doesn't matter what crap Safari does, it's a userspace app. If anything it does crashes the kernel, kernel is to blame. Obviously, Safari is also doing something strange, and that may be a separate bug, but a vulnerability in Windows kernel is obviously higher priority.

    57. Re:So all 5 of you running Safari on Windows by fluffy99 · · Score: 1

      64-bit windows requires no-execute on data pages (DEP), so there's no route you can cause data corruption and end up with executable code unless you have code running in the kernel to change the flags on the pages in memory.

      If this is a theoretical exploit, the authors of it may not be that familiar with 64-bit Windows 7, or are running on a developer machine they explicitly disabled DEP.

      Close but not quite. 64-bit Vista and newer enable DEP for 64-bit programs by default but it can be disabled. It still provides no assurance that the program properly marks its pages. I've seen too many programs that just mark everything as executable to avoid DEP issues. Given how many issues Safari had with DEP on Vista64 (typical of their programs for Windows), it wouldn't surprise me if Apple did that.

    58. Re:So all 5 of you running Safari on Windows by Hentes · · Score: 2

      If a program can get unlimited privileges then it's a bug in Windows. If Safari can do it, any piece of malware can too.

    59. Re:So all 5 of you running Safari on Windows by elrous0 · · Score: 1

      Yeah, but he also used a car in the analogy, as is required by /. policy.

      --
      SJW: Someone who has run out of real oppression, and has to fake it.
    60. Re:So all 5 of you running Safari on Windows by lsatenstein · · Score: 1

      If Safari can do it, so can others who craft this type of object. Therefore it is a Windows 64 bit bug.

      --
      Leslie Satenstein Montreal Quebec Canada
    61. Re:So all 5 of you running Safari on Windows by Gr8Apes · · Score: 1

      There's only 1 exploit, and it's the win32k bug. Safari is merely a means to exploit it. If Safari were taken out of the equation, the bug still exists.

      --
      The cesspool just got a check and balance.
    62. Re:So all 5 of you running Safari on Windows by Gr8Apes · · Score: 1

      Even in low rights mode, you can still do code injection if you know what you're doing in Windows. It's one of Windows fundamental architectural flaws.

      --
      The cesspool just got a check and balance.
    63. Re:So all 5 of you running Safari on Windows by ceswiedler · · Score: 1

      I'm sure you're right, but that only proves his point... the code was moved from userspace into the kernel, which certainly contributed to its complexity and insecurity.

    64. Re:So all 5 of you running Safari on Windows by Guy+Harris · · Score: 2

      If Safari can do it, so can others who craft this type of object. Therefore it is a Windows 64 bit bug.

      Yes, but if the fix to the Windows graphics subsystem means that whatever Safari's doing causes, instead, Safari to be terminated with an error (because it's doing something the Windows graphics subsystem doesn't want you to do), or to mis-display the HTML page in question, or something such as that, there's also a Safari bug there that should also be fixed.

    65. Re:So all 5 of you running Safari on Windows by hairyfeet · · Score: 1

      Alright tell me how EXACTLY you are gonna do code injection with low rights mode, DEP AND ASLR? Because to do code injection you have to know WHERE the target is in memory and ASLR makes that random so you are trying to hit a dartboard bullseye with a live bumblebee.

      If we were talking about XP I'd agree with your friend, but the only real nasty you need to worry about on modern Windows is Adobe who frankly pisses all over the concept of least permissions and doesn't support squat in the way of security. that is why the first thing I do when my customer gets a new laptop is wipe out Adbobe Reader because it is the biggest attack vector bar none.

      But you can't really blame Windows for a vendor that takes the best practices data sheet and wipes their ass with it, especially when so many businesses refuse to use anything else. But the combo of ASLR, DEP, and low rights mode makes for a pretty damned hard nut to crack which as I said i tried my damnedest to infect it and couldn't get a single driveby, all they could do was crash the browser.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    66. Re:So all 5 of you running Safari on Windows by helix2301 · · Score: 1

      When Safari is loaded on Windows 7 and a web site is browsed to with an HTML IFRAME tag with a very large height attribute a blue screen is gotten. The worry is this vulnerability could be used to execute kernel level attacks on computers or do other malicious attacks. Microsoft is looking into patching the issue before more exploits are made a result of this bug.

    67. Re:So all 5 of you running Safari on Windows by Coren22 · · Score: 1

      As I despise Safari, I never run it, even on a Mac, but this may have to do with some requirement of Safari's to run as administrator?

      --
      APK likes to ask for responses to the same things over and over. Maybe he just likes the responses?
    68. Re:So all 5 of you running Safari on Windows by Coren22 · · Score: 1

      So, when the win32k.sys bug is fixed, Safari will magically become fixed too? You don't see that it is a bug in Safari that exposes win32k.sys to the internet at all?

      --
      APK likes to ask for responses to the same things over and over. Maybe he just likes the responses?
  2. Headline.. Flaw in APPLE Safari for windows found by SirBitBucket · · Score: 4, Insightful

    So far you must use Safari under Win7 64bit to exploit this. But we would never want to say anything bad about Apple, only about Microsoft...

  3. H-online also has the story. by mrflash818 · · Score: 4, Informative

    20 December 2011, 13:21
    Highly critical zero day vulnerability in Windows discovered

    http://www.h-online.com/security/news/item/Highly-critical-zero-day-vulnerability-in-Windows-discovered-1398625.html

    --
    Uh, Linux geek since 1999.
  4. Wait... by SJHillman · · Score: 4, Funny

    Safari runs on Windows? Any time I've tried running Apple software (iTunes, Safari, Quicktime) on Windows, it just takes forever to load, wants to spend all day updating, chews up my memory and craps on my processor. If someone is running Safari on Windows intentionally then they might be masochistic enough to welcome this 'feature'

    1. Re:Wait... by geekoid · · Score: 1

      I think you should have an actually professional look at your machine.
      I run iTunes without any [problem on window7, x64. I also ran Safari for a while to check it out. It wasn't as good as Chrome so I ditched it.

      And there is nothing special about the box I run them on.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  5. It's an Apple exploit. by whatthef*ck · · Score: 3, Insightful

    Shouldn't the posting have the Apple graphic instead of Microsoft?

    1. Re:It's an Apple exploit. by Mashiki · · Score: 3, Funny

      Nah. Easier to bash MS, this is /. after all. Critical thinking skills go out the Windows.

      --
      Om, nomnomnom...
    2. Re:It's an Apple exploit. by Anonymous Coward · · Score: 1

      Actually, should be both. Safari may be the attack vector and there may be a bug there, but the OS kernel should NEVER allow memory corruption AT ALL, EVER . That's a part of its entire JOB. The fact that the kernel doesn't just crash Safari and continue on its way after booting the browser out of memory says there very well is a problem with the Win7 kernel.

    3. Re:It's an Apple exploit. by geekoid · · Score: 1

      Since windows allows arbitrary code to run, and is used by about 85% of the market, there is nothing wrong with the headline.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    4. Re:It's an Apple exploit. by Mashiki · · Score: 1

      You obviously missed the joke, much like the two AC's did. Though a bunch of people caught it.

      --
      Om, nomnomnom...
  6. Re:Headline.. Flaw in APPLE Safari for windows fou by The+MAZZTer · · Score: 4, Informative

    TFA suggests it allows kernel privileges, so it is certainly a Windows exploit. But it may also be a Safari bug too, it depends whether or not the data it is passing to the Windows API calls that are causing the exploit would be considered reasonable or not.

  7. I don't think I'd call this remote by sqlrob · · Score: 4, Insightful

    Remote to me means "it's connected, you're vulnerable". This requires the user to take an action, getting some local data. From the description, you could have the same files on the file system and it would work.

    Bad? Yeah. But not "plug it in, computer is pwned" bad.

    1. Re:I don't think I'd call this remote by Anonymous Coward · · Score: 1

      Possibly remote, if said 'iFrame' was somewhere out on the Internet.

      Want proof of damage? Inject this type of thing into the ad system that gets run on every search engine, and popular website out there. You'll find out really fast just how BAD it is. And YES. This sort of 'injection method' has been used before, specifically targeting Windows users.

      It may be a 'small' target audience at the moment, Safari specifically on Win7 64bit, but that doesn't mean others haven't found a way to exploit it without the need for Safari.

    2. Re:I don't think I'd call this remote by phantomfive · · Score: 1

      I believe the most common term for this kind of exploit is "drive by exploit." Meaning, all you have to do is surf the web and it could nail you. Technically much more serious than a phishing attack, but less serious than a remote exploit.

      --
      "First they came for the slanderers and i said nothing."
  8. Re:Headline.. Flaw in APPLE Safari for windows fou by Baloroth · · Score: 5, Interesting

    The flaw seems to be in a call to a Windows API.

    It is possible to trigger a memory error in the system file win32k.sys by accessing a crafted HTML file in Safari....According to webDEViL, the source of the vulnerability is the function NtGdiDrawStream.

    So it is possible other programs could be affected. It is also possible that Safari itself handles the function in a broken manner. Note that Firefox appears to also have crashes related to that function (on x86 Windows, though, it's like the second Google result for that function). So, really impossible to say at this point. Also, they could only cause Windows to crash, not to run arbitrary code or anything. So far anyways.

    --
    "None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
  9. wow by cod3r_ · · Score: 1

    just wow.. an iframe causes an attacker to get system level access.. wow again.

  10. Re:Headline.. Flaw in APPLE Safari for windows fou by devitto · · Score: 1

    Wrong - it's a MS bug in windows, it's just that they triggered it through Safari. A bit like saving saving a file in safari causing the machine to explode - not really Safari's fault.

  11. Re:Headline.. Flaw in APPLE Safari for windows fou by tgd · · Score: 2

    TFA suggests it allows kernel privileges, so it is certainly a Windows exploit. But it may also be a Safari bug too, it depends whether or not the data it is passing to the Windows API calls that are causing the exploit would be considered reasonable or not.

    I wouldn't make that blanket assumption -- Apple installs a MASSIVE amount of crap into the system. A kernel exploit in Windows code is NOT the same as a kernel exploit in Apple code. A service, a device driver, a process running with admin rights without appropriate protections from user-space could all be a vector for a kernel exploit.

  12. Re:Headline.. Flaw in APPLE Safari for windows fou by The+MAZZTer · · Score: 5, Informative

    Addendum: <iframe height='18082563'></iframe> causes a BSoD by the Windows kernel so it is certainly a Windows bug. It would be trivial of Apple to hotfix it to prevent exploitation via Safari but any other application could theoretically exploit it and elevate their code. Of course it doesn't appear anyone else has actually gotten it to execute arbitrary code yet, despite the summary claim...

  13. Re:Headline.. Flaw in APPLE Safari for windows fou by icebike · · Score: 1

    It seems unlikely this was found by accident, more likely by someone knowing about how the iframe would
    be handled in windows and designing something purpose made to break that.

    Not knowing how Safari is interfacing with windows, I can't guess if this is a problem in a windows API call or some tool-set used only by Safari. If none of the other Webkit browsers can trigger this bug it would seem more likely to be some safari specific middleware.

    All 6 people using Safari on Win7 64bit should definitely avoid all 3 sites on the internet that might have deployed this exploit.

    --
    Sig Battery depleted. Reverting to safe mode.
  14. Re:Headline.. Flaw in APPLE Safari for windows fou by rabbit994 · · Score: 3, Interesting

    The only confirmed anything I've seen is someone can BSOD the computer. Which while a bug, not Remote Code Execute, just Denial of Service attack.

    Since this problem only exists in Safari, either Chrome/IE/Firefox are sanitizing those inputs to prevent that from reaching Windows kernel.

    Furthermore, since this x64 bug only, my guess is this issue was patched in 32 but for some reason, WOW64 isn't seeing it or catching it.

  15. Re:Headline.. Flaw in APPLE Safari for windows fou by tgd · · Score: 1, Informative

    Addendum: <iframe height='18082563'></iframe> causes a BSoD by the Windows kernel so it is certainly a Windows bug. It would be trivial of Apple to hotfix it to prevent exploitation via Safari but any other application could theoretically exploit it and elevate their code. Of course it doesn't appear anyone else has actually gotten it to execute arbitrary code yet, despite the summary claim...

    And likely won't -- Win7 64-bit requires DEP, so you can't corrupt a data page and end up executing code unless there's a defect in the CPU *or* you have code in the kernel to change the page type. And if you have code already in the kernel, you don't really need an exploit.

    Its also not clear from the article if its corrupting kernel memory, or corrupting user memory. The driver crashing doesn't necessarily imply data in kernel space was corrupted, it just means the driver crashed for some reason.

  16. Re:misleading headline by icebike · · Score: 3, Informative

    Safari is the only attack vector. This by definition is not a remote flaw as it requires you to do something to exploit a web browser, thus it is a 'local exploit'.

    The web page can be remote, and can presumably gain control. You, the user, need do nothing but click a link, and might possibly be unaware that anything had happened.

    Letting someone talk you into installing Safari also constitutes a Social Engineering exploit. So you might be right after all.

    --
    Sig Battery depleted. Reverting to safe mode.
  17. Re:Does anyone read anymore? by vux984 · · Score: 3, Informative

    This is Microsoft buggy code causing issue, Safari problem is merely one way to cause rooting of machine, other softwares using this service will undoubtedly provide more cases.

    a) Yes, this is a bug in Windows. No question. Windows isn't validating the input, and should just reject it or throw an exeption or whatever. Crashing is not acceptable and represents a bug in windows.

    b) This is also a bug in safari. Safari is not validating its input either. Its just blindly passing a request to create an 18million pixel tall iframe down to the Windows API somewhere...

    c) Yes, other softwares will likely be found. But so far only safari is known to be in the unique position of using that API, passing it arbitrary remote content while failing to validate its input.

    A bit of malicious code that explicitly does use that API actually has to get onto the local system first. Local exploits are much less serious than remote ones.

    So yes, this is a windows bug. But it is also a safari bug. Both should be fixed.

  18. Re:Silly by ledow · · Score: 4, Insightful

    Missing the point. Point is that userland code (and the example uses Safari but what should it matter *what* program activates it - it shouldn't be possible and can probably be easily activated by any sort of direct code) creates a BSOD in Windows.

    That shouldn't happen - that's the whole point of an OS.

  19. Really? by Nicros · · Score: 1, Interesting

    For some reason I have a false sense of security now- if this is the kind of 'exploit' that gets reported and /.ed and that I need to worry about, life is good! I mean really- you have to have Win7 x64, with Safari AND then navigate to a site that serves up a bogus iframe height, AND uses the exploit to make bad on your machine. I can't imagine this affects too many people. Also, why is this a 'Windows Remote' exploit? Safari would seem to not handle the iframe exception, whereas IE, Firefox, Chrome, Opera DO? If this were a true windows exploit I would expect it to occur regardless of the browser. And what other kind of exploit (as it's defined ITA) is there besides a remote one? A local exploit, where someone turns off my machine? I read 'remote' and think RDP... which is not the case here at all.

    1. Re:Really? by jones_supa · · Score: 1

      Safari would seem to not handle the iframe exception, whereas IE, Firefox, Chrome, Opera DO? If this were a true windows exploit I would expect it to occur regardless of the browser.

      Why do you think so? The browsers have different iframe code. Safari just happens to have code which in turn trips a Windows exploit. Ultimately the bug is not browser-related at all.

      (Still, Safari could do a better job validating the input values, so there's kind of another bug.)

  20. Re:Silly by lennier1 · · Score: 2

    They just didn't as the right questions:

    1) Does it affect other WebKit browsers (especially Chrome) as well?
    2) If not, why should we give a shit?

  21. Re:Headline.. Flaw in APPLE Safari for windows fou by slater.jay · · Score: 2

    Accidental funny mod.

  22. Obviously this proves that... by forkfail · · Score: 5, Funny

    (check one)

    [ ] Microsoft products are far less secure than Apple. Because everyone knows that Safari is completely safe always on Apple machines, and only fails on Windows.

    [ ] Apple products are far less secure than Microsoft. Because obviously the hole in Microsoft security here is introduced through an Apple product, and really doesn't occur otherwise.

    [ ] If people were just running Linux, they wouldn't be having these problems.

    [ ] This is gonna be good. Ima gettin' my popcorn now!

    --
    Check your premises.
  23. Ah, the irony ... by oneiros27 · · Score: 1

    It used to be that if my Mac crashed, I was in an MS program (word, powerpoint, IE back in the day) ... and now the roles have reversed.

    --
    Build it, and they will come^Hplain.
    1. Re:Ah, the irony ... by perryizgr8 · · Score: 1

      finally! someone admits that macs can actually crash!
      well, i'm happy to report that windows 7 NEVER crashes :D

      --
      Wealth is the gift that keeps on giving.
  24. Re:Headline.. Flaw in APPLE Safari for windows fou by Anonymous Coward · · Score: 1

    This is a common misconception on the use of DEP. DEP is a mitigation, not a solution.
    There are dozens of ways to get around DEP protection. It helps sometime, but not when you execute already existing (and useful) code inside the kernel/app.

  25. Safari... by pwolf · · Score: 1

    Well there's the problem!

  26. Re:Headline.. Flaw in APPLE Safari for windows fou by TheRealMindChild · · Score: 1

    The prototype for the NtGdiDrawStream is as such:

    BOOL NtGdiDrawStream(IN HDC hdcDst, IN ULONG cjIn, IN VOID* pvI);
    So, simply speculating, this may be something like a ULONG going in, but it gets cast to a signed integer.

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  27. Re:Headline.. Flaw in APPLE Safari for windows fou by geekoid · · Score: 2

    If the OS allows Safari to run any arbitrary code, or ANY software for that matter, then there is an OS problem.

    Should Safari accept overlarge iFrame? no. That is also the problem.

    Since Window is used far more then safari, and is a core componant of many systems, then putting it as a MS exploit is the responsible thing to do.

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  28. Re:Silly by jones_supa · · Score: 1

    1) Does it affect other WebKit browsers (especially Chrome) as well?

    I am pondering this too.

  29. Re:Headline.. Flaw in APPLE Safari for windows fou by geekoid · · Score: 1

    because DEP is bug free?

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  30. Re:Does anyone read anymore? by 0123456 · · Score: 2, Interesting

    So yes, this is a windows bug. But it is also a safari bug. Both should be fixed.

    So how does Safari know whether Windows can support an 18 million pixel high window without requesting one? If it's a valid value for the request, then an application should be able to assume that the OS will either fulfil the request or return an error, not execute arbitrary code.

  31. Re:I had a better experience with Vista by Dr_Barnowl · · Score: 2

    Did you have more than 4GB of RAM on this system before you installed 64-bit Windows? I was running with 6GB of RAM and seeing all sorts of crashes and nasties in 64-bit Linux, but nothing untoward in Windows. It turned out I had memory errors in the upper regions where 32-bit Windows could not reach.

  32. Windows Classic not affected? by Fred+Or+Alive · · Score: 5, Interesting

    After a bit bit of playing "let's intentionally crash Windows", it seems that using the Windows Classic skin fixes the bug, and the page renders fine (if a little uninteresting, it's basically a long page with a box on it). It BSODs on Windows Basic and Aero. I haven't a clue if this is a real fix, or if it's just that the magic number needed to crash the system is different with Windows Classic compared with Basic / Aero. Windows XP (32 bit) is fine as well (again page renders fine, no crashes of anything).

    I personally think it's largely a Windows bug, even if Safari has a bug (that oddly only does anything on one version of Windows, and even then only with certain conditions), a programme doing something stupid should not crash the entire OS.

    --
    10 PRINT "LOOK AROUND YOU ";
    20 GOTO 10
  33. Re:I had a better experience with Vista by viperidaenz · · Score: 1

    So its microsofts fault that nvidia and creative wrote buggy drivers?

  34. Re:misleading headline by JDG1980 · · Score: 3, Funny

    Letting someone talk you into installing Safari also constitutes a Social Engineering exploit. So you might be right after all.

    Apple attempts this "exploit" every time someone installs or updates iTunes for Windows.

  35. I'm a PC! And An Apple! Exploit! by tunapez · · Score: 1

    You insensitive clod.

    --
    Imagination drew in bold strokes, instantly serving hopes and fears, while knowledge advanced by slow increments...
  36. Annoying lack of details by anonymov · · Score: 4, Informative

    For now it's unclear how bad is this, as the only concrete detail is Secunia's link to "original advisory"

    From digging around bug submitter's twitter:

    @igursev @therealsaumil not really an integer overflow. Otherwise 18082564 would have also worked ;-)
    4 hours ago

    w3bd3vil webDEViL @
    @igursev It probably is, but not theoretically. In simpler terms, I can't build an exploit for it.
    12 hours ago

    @kernelpool yeah I tried with some help to get code execution but was beyond me...
    19 Dec

    @r3dsm0k3 Yeah. It's the NtGdiDrawStream which is being called multiple times...leading to a not so interesting crash.
    18 Dec

    <iframe height='18082563'></iframe> causes a BSoD on win 7 x64 via Safari. Lol!
    18 Dec

    So a) there's a bug in win32k.sys, tickled by Safari's (allegedly) incorrect API usage, so there's possibility of other exploits, b) "may lead to arbitrary code execution" means "we don't know yet, but we're playing safe", the only confirmed effect is BSoD by memory corruption.

    Why the fuck there's so little about it, did nobody research yet what kind of memory corruption it actually does? The tweet's from 4 days ago, FFS.

    1. Re:Annoying lack of details by phantomfive · · Score: 1

      Why the fuck there's so little about it, did nobody research yet what kind of memory corruption it actually does?

      Of course they did, which is why your machine is now a bot for some Eastern European malware network. j/k

      --
      "First they came for the slanderers and i said nothing."
    2. Re:Annoying lack of details by shutdown+-p+now · · Score: 1

      Any bug that results in memory corruption is a potential arbitrary code execution exploit, unless proven otherwise. It's just a question of how many hoops the attacker will get to jump through to execute his payload.

  37. Re:Headline.. Flaw in APPLE Safari for windows fou by the_B0fh · · Score: 1

    Because DEP induces morons to believe they're now secure and protected forever.

  38. is it public? by viperidaenz · · Score: 1

    Has anyone done any proper debugging on this? NtGdiDrawStream doesn't look like public API... I can't find any reference to it in msdn. Does Safari access this function directly or indirectly through another public API? If they are directly calling an undocumented API then shame on Apple (especially so considering their response to iphone app authors use of undocument API). If it is public then shame on MS.

    1. Re:is it public? by Fred+Or+Alive · · Score: 2

      The Nt prefix seem to indicate it's part of Windows' Native (kernel) API. It isn't that well documented. Safari is probably going via the public Win32 API, which calls the Native API when kernel services are needed. It's a bit (kinda, sorta) like on Linux where a user programme won't usually directly call the kernel, but libc will call it when needed.

      --
      10 PRINT "LOOK AROUND YOU ";
      20 GOTO 10
    2. Re:is it public? by viperidaenz · · Score: 1

      Since noone has published a stack frame dump or anything to draw the line between the OS and the application you can't really tell where the problem lies

    3. Re:is it public? by yuhong · · Score: 1

      FYI I remember debugging a crashdump from this BSoD, and Safari was calling uxtheme which in turn calls this function that causes the BSoD.

    4. Re:is it public? by shutdown+-p+now · · Score: 1

      It's an undocumented API (at least for user space apps), but it doesn't matter. It's an exposed entry point. Just because it's not documented doesn't mean that programs can't call it. They can't expect any particular meaningful results if they do, but they certainly shouldn't be able to BSOD the system (i.e. crash the kernel) that way.

  39. Re:Headline.. Flaw in APPLE Safari for windows fou by someSnarkyBastard · · Score: 1

    Judging from your post and your sig, I'm gonna say you really shouldn't talk to yourself in the mirror like that, it's not healthy.

  40. So it's a Safari bug, not a Windows bug? by EmagGeek · · Score: 1

    Which is it?

    1. Re:So it's a Safari bug, not a Windows bug? by anonymov · · Score: 1

      It _is_ a Windows bug in kernel mode part of GDI, win32k.sys.

      For Safari it's unclear, if it does something wrong to trip the bug win32k.sys - it's a bug in Safari as well, if it uses APIs as documented - they're just (un)lucky to trigger it.

  41. Re:Does anyone read anymore? by vux984 · · Score: 1

    So how does Safari know whether Windows can support an 18 million pixel high window without requesting one?

    Safari knows what the screen resolution is. A request for a screen element like an iframe 10,000 times the height of of the screen clearly fails any reasonable sanity check you might think of. Its clearly a broken page, and should be rejected at that point.

    Just as if I'm Safari for the iPhone and the page tries to allocate a 2 billion cell html table, i don't care even if its "legal and well formed html", don't bother rendering it.

  42. Re:Does anyone read anymore? by anonymov · · Score: 1

    A request for a screen element like an iframe 10,000 times the height of of the screen clearly fails any reasonable sanity check you might think of.

    And how am I supposed to look at this 30 gigapixel Longcat pic now? You insensitive clod!

  43. Re:Does anyone read anymore? by Just+Some+Guy · · Score: 1

    A request for a screen element like an iframe 10,000 times the height of of the screen clearly fails any reasonable sanity check you might think of.

    Never underestimated the size of a log file before opening it in an editor, huh? No, 0123456 is completely correct: it's the kernel's job to validate its function parameters. That doesn't mean Safari should be gratuitously throwing ridiculous values at it, but Safari should be able to without anything bad happening.

    For example, you'll probably never need to printf("%1000000000000000s", &hugebuffer), but libc is required to tell you if you've asked it to do something dumb that it can't fulfill. It's right there in the spec. If it fails to ensure it can sanely execute your request, it's broken.

    --
    Dewey, what part of this looks like authorities should be involved?
  44. Re:Headline.. Flaw in APPLE Safari for windows fou by cyber-vandal · · Score: 1

    You must be new here if you think no-one says anything bad about Apple.

  45. Re:FAIL by cyber-vandal · · Score: 1

    Or better still use Chrome since Safari is a monstrous memory hog on OS X.

  46. Re:Does anyone read anymore? by vux984 · · Score: 1

    it's the kernel's job to validate its function parameters.

    I never said otherwise.

    That doesn't mean Safari should be gratuitously throwing ridiculous values at it, but Safari should be able to without anything bad happening.

    And I agree with this too. Read the whole thread not just the last response. I said at least TWICE that I completely agreed it was a bug in windows ALSO.

    My point here, is that EVEN if windows COULD fullfill this request, Safari should STILL be blocking it. My browser shouldn't open 18million pixel high iframes, simply because some random website asked it to, even if it were technically possible.

    There is all sorts of perfectly legal html, css, etc one can write that browers should reject or at least constrain.

    p { border-width:15000000000px; }

    Perfectly legal and well formed. The CSS spec doesn't say where that I can find what the maximum border width in pixels should be. It doesn't say anywhere I could find what the largest integer should be. So15 billion pixels border width? Within spec.

    My browser should still just ignore it.

    It shouldn't even get passed onto the drawing APIs to try.

  47. Re:Headline.. Flaw in APPLE Safari for windows fou by cbhacking · · Score: 1

    Ugh... man, I hate to break it to you, but your "understanding" of the security technologies is *way* off.

    First, DEP is trivial to bypass. Go research "return-oriented programming" and you'll find not only working exploits but even entire toolchains that can compile an arbitrary C program into a return-oriented stack that executes by controlling the program counter and stack frame (including local variables) to make a binary execute completely different instructions. (The mitigation here is ASLR, which has its own counters although the easiest so far is finding a binary that is loaded without ASLR enabled and its address is therefore known.) The most common purpose of a return-oriented program is to mark a section of memory executable (turn off the NX flag for that page, which essentially says "I want this piece of memory to prevent DEP is disabled" and has many legit purposes, so it can't be blocked).

    Second, there are attacks that work even when DEP is enabled. Ever heard of "JIT spraying"? It's a pretty simple technique, actually - you use any program that has a JIT compiler, like Safari (or any other modern browser, or Flash, or a Java applet, or...) and have it load a script or bytecode containing a whole bunch of instructions like this that do things like add two 64-bit integers together. With each of these, you write 17 bytes of memory into the instruction stream. You have full control over 16 of them and you know what the other one is. Now, if the instruction pointer jumps to the start of the first instruction, it'll do a bunch of meaningless arithmatic on really big numbers. If it jumps into the stream in the middle of one of those huge instructions, though, it's now exeuting attacker controlled code, and can do pretty much anything at all (you can fit a lot of x86 instructions wholly within a 64-bit number, much less a bunch of them). You have to work around the actual arithmetic opcodes, but since you know what they are and you control the bits around them, you can make them be interpreted as part of the alternate instruction sequence.

    Seriously, that's just two approaches off the top of my head that both completely defeat DEP. There are others, too. In general, if the attacker can write even a few bytes of arbitrary memory (sometimes as little as changing one bit is sufficient), you assume they can take over the program. If they've already got control of the instruction pointer (which is the point where DEP even becomes relevant) you *KNOW* you're hosed.

    Also, the kernel-mode crash is certainly due to to a kernel bug. Hypothetically you can have a bug that doesn't involve memory corruption, like a syscall that takes a pair of parameters and divides them without checking whether the denominator is zero. However, any kernel entry point (be it in a driver or otherwise) is supposed to validate its input when the input is coming across the user/kernel boundary. If it's not doing that, or not doing it correctly is is a bug. Since we're discussing kernel-mode code here, it is specifically a kernel-mode bug. The fact that the bug is triggered by compromising a user-mode program doesn't change that at all; I could just as easily write a user-mode program that intentionally triggered the kernel bug, and get arbitrary privileges on the system.

    --
    There's no place I could be, since I've found Serenity...
  48. Re:Headline.. Flaw in APPLE Safari for windows fou by Anonymous Coward · · Score: 1

    If the OS allows Safari to run any arbitrary code, or ANY software for that matter, then there is an OS problem.

    Safari isn't just a user mode application. The only reason it's on windows is part of an itunes installation, which includes several services which run in the background with SYSTEM privileges.

    Since the flaw isn't clear yet, it's all speculation at this point.

  49. Re:Headline.. Flaw in APPLE Safari for windows fou by hawkinspeter · · Score: 2

    If Apple wrote iTunes, then why does it suck so much?

    --
    You're a temporary arrangement of matter sliding towards oblivion in a cold, uncaring universe
  50. Re:Headline.. Flaw in APPLE Safari for windows fou by hawkinspeter · · Score: 1

    WTF?

    --
    You're a temporary arrangement of matter sliding towards oblivion in a cold, uncaring universe
  51. Re:Does anyone read anymore? by colinrichardday · · Score: 1

    At about 100 pixels per inch, that's about 180,000 inches. That's almost 3 miles. Also, if the image is 200 pixels across, you have 3.6 billion pixels. At three bytes per pixel (RGB), that's over 10 billion bytes. That's more than most people have in RAM plus swap. Shouldn't something check to see if the computer can handle such a request

  52. Re:FAIL by colinrichardday · · Score: 1

    What if the only computer you have runs Microsoft Windows 7 64 bit, and you need to see how your web pages render in Safari?

  53. Re:FAIL by LynnwoodRooster · · Score: 1

    Might as well check Lynx and AOLOnline for 95 browsers as well, too...

    --
    Browsing at +1 - no ACs, I ignore their posts. So refreshing!
  54. Re:Does anyone read anymore? by aiht · · Score: 1

    Shouldn't something check to see if the computer can handle such a request

    Yes, the Operating System - the thing that manages the hardware of the computer.
    Having said that, there's nothing wrong with user-mode programs also doing sanity checking - defense-in-depth and all.

  55. Re:Headline.. Flaw in APPLE Safari for windows fou by lightknight · · Score: 1

    *grumble grumble*

    Of course it does. It's part of MS's plan to bring the "bang" back into C++. All this nonsense about buffer overflows and what not, that's just the managed code people trying to keep good programmers from realizing the speed and efficiency of a good, tightly written C++ program, which can compromise your machine in 10 seconds flat.

    I have frequent, unkind thoughts for a company that scuttled a good migration to a nicer programming experience.

    How about, instead of Windows 8, you finish the code migration? 7 will tide us over for another several years.

    --
    I am John Hurt.
  56. Re:Headline.. Flaw in APPLE Safari for windows fou by lightknight · · Score: 1

    7 people.

    I've been working on a (God help me) PHP implementation of a CalDav client for Davical, and Safari is one of the five or so browsers I've been testing it on.

    --
    I am John Hurt.
  57. Re:FAIL by colinrichardday · · Score: 1

    According to this http://en.wikipedia.org/wiki/Usage_share_of_web_browsers, Safari has 11.2% usage share, and Other has only 3.5%.

  58. Re:I had a better experience with Vista by shutdown+-p+now · · Score: 1

    win32k.sys is not an NVidia driver.

  59. Re:FAIL by perryizgr8 · · Score: 1

    yeah, friends don't let friends install safari!

    --
    Wealth is the gift that keeps on giving.
  60. Re:I had a better experience with Vista by viperidaenz · · Score: 1

    Nvidia's crashes Firefox and Creative's kill my machine with IRQ errors.

  61. Re:I had a better experience with Vista by shutdown+-p+now · · Score: 1

    Sorry. Slashdot had some wonderful UI changes again such that your parent post didn't show up at all (on the main comment page in TFS).

  62. Re:Headline.. Flaw in APPLE Safari for windows fou by jquirke · · Score: 1

    I would be very worried about any user mode code that can blue screen the system.

    The bluescreen is simply an indication kernel mode state is horribly inconsistent. Whatever the code was able to do to corrupt OS state, there is a good chance this could be used as an attack vector.

    Making an application crash is often the point of discovery of new exploits.

  63. Re:Headline.. Flaw in APPLE Safari for windows fou by swalve · · Score: 1

    Admittedly, I don't know the security model too well. But how does Windows know that the instructions coming from Safari are Good or Evil?

  64. Re:Headline.. Flaw in APPLE Safari for windows fou by swalve · · Score: 1

    Don't worry, he [thinks he] is one of God's Christian soldiers.

  65. Re:Headline.. Flaw in APPLE Safari for windows fou by drsmithy · · Score: 1

    If the OS allows Safari to run any arbitrary code, or ANY software for that matter, then there is an OS problem.

    What ? How do you propose the OS know whether or not Safari is running "arbitrary" code ?

  66. Re:I had a better experience with Vista by swalve · · Score: 1

    Intel or AMD?

  67. Re:Silly by ledow · · Score: 1

    There's nothing stopping media acceleration and OS's coexisting - they have forever. That's the best bit that I've seen of Windows 7: video driver crashes - no problem, reinitialise the hardware and start it again as if nothing had happened. That's *proper* isolation of userland code (we don't care what the hardware's doing, this is what we have on screen) from hardware (bugger, the videocard has crashed, okay, bung it back into VESA mode, reinitialise it, and when it's ready again I'll ask the software to redraw themselves). That's the whole point of an OS. What burdens the hardware takes off you are entirely inconsequential - if the OS has to rebuild the GL state, that's what it does, if it has to reupload the textures, that's what it does, if it has to do anything it ALL goes through the OS at some point and can be controlled and restarted at will, accelerated or not.

    The OS is there to remove hardware from software. The software doesn't need to access the hardware directly in order to get its job done (and shouldn't be, either, hence why DirectX, OpenGL, device drivers, etc. exist as intermediate layers) and hasn't needed to since the DOS days (and even they were decades behind the Unixes of the day in that respect) and the OS doesn't need to bug out if there's a problem with a single item of non-critical hardware.

    No userland code, no matter what it pokes, documented or not, when run as an ordinary user should cause the OS to stop working. It's not only stupid (that's WHY OS's were invented!) but dangerous (there's no telling what state you could get the OS into, what the side effects of that crash are, and whether it can be used to bypass the OS security).

    The absolute worst is that the OS decides to terminate a program because it's being silly or things spin out of control because it gets into an infinite loop. EVEN THEN, the OS has control and can kill whatever the user needs to.

    No userland program, ever, in the world, should be able to cause a kernel panic or BSOD when run as an ordinary user on a clean station. If it does, it's a poor / broken OS.

  68. Re:Headline.. Flaw in APPLE Safari for windows fou by scot4875 · · Score: 1

    Nah, when it's a privilege escalation bug exploitable through a web browser in iOS we just call it "unlocking" the phone.

    --Jeremy

    --
    Jesus was a liberal
  69. More details now available by yuhong · · Score: 1
  70. Re:FAIL by LynnwoodRooster · · Score: 1

    And how many of those 11% are 64 bit versions of Windows 7?

    --
    Browsing at +1 - no ACs, I ignore their posts. So refreshing!