Slashdot Mirror


Word 2007 Flaws Are Features, Not Bugs

PetManimal writes "Mati Aharoni's discovery of three flaws in Word using a fuzzer (screenshots) has been discounted by Microsoft, which claims that the crashes and malformed Word documents are a feature of Word, not a bug. Microsoft's Security Response Center is also refusing to classify the flaws as security problems. According to Microsoft developer David LeBlanc, crashes aren't necessarily DoS situations: 'You may rightfully say that crashing is always bad, and having a server-class app background, I agree. Crashing means you made a mistake, bad programmer, no biscuit. However, crashing may be the lesser of the evils in many places. In the event that our apps crash, we have recovery mechanisms, ways to report the crash so we know what function had the problem, and so on. I really take issue with those who would characterize a client-side crash as a denial of service.' Computerworld's Frank Hayes responds to LeBlanc and questions Microsoft's logic.'"

74 of 411 comments (clear)

  1. English-to-Microsoft dictionary by Anonymous Coward · · Score: 5, Funny

    Word 2007 Flaws Are Features, Not Bugs
    That's right and the price you pay for it is an investment, not a complete waste of resources.

    What's the matter? Did the Slashdot editors lose their English-to-Microsoft dictionary again?
    1. Re:English-to-Microsoft dictionary by eneville · · Score: 3, Funny

      Word 2007 Flaws Are Features, Not Bugs
      That's right and the price you pay for it is an investment, not a complete waste of resources.

      What's the matter? Did the Slashdot editors lose their English-to-Microsoft dictionary again? The denial of the denial of service is what really grinds my gears. There are so many companies who listen to their customers about things like this. With a high profile product the company should really bring it to the attention of their developers.
    2. Re:English-to-Microsoft dictionary by smittyoneeach · · Score: 2, Funny

      My favorite is turning on Track Changes, then selecting text and using Shift+F3 to cycle the text case.
      The fact that you changed, for example, 'rtfa!' to 'RTFA!' is _not_ included in Track Changes. Oops.
      Reported that a version or two ago, and the report came back (promptly, I might add, as I paraphrase) "That behavior goes all the way back to Word97. We're going to label that 'Behavior by Design'".
      If Word were a housecat, it would be conceptually similar to the Robin Williams routine, where Robin pretends to be a cat that sees something exiting through the closed sliding glass door, and careens into it going full-tilt-boogy. Cat's too proud to cry in front of you, so he limps over behind the couch, muttering "fsckin' meow, fsckin' meow"* to recuperate.

      *The cat is was a sysadmin on a proper operating system before too many high-speed crashes gave him a Windows fetish...

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  2. Re:Let's just get this out of the way then... by Mateo_LeFou · · Score: 5, Informative

    Um, it's defined in the twelve words after "fuzzer" in TFA

    "a tool that probes an application for vulnerabilities by sending random input"

    This is known as an appositive phrase.

    --
    My turnips listen for the soft cry of your love
  3. Re:Let's just get this out of the way then... by fsulawndart · · Score: 2, Informative
  4. I didn't know that by alberion · · Score: 2, Interesting

    Windows is filled with these nice features too. Microsoft is sure to include them in every piece of software they release.
    Why spend on testing, when you got paying consumers to do the bug reports for you?
    It may be unethical, but they ARE getting richer by the minute.

    1. Re:I didn't know that by Skadet · · Score: 5, Insightful

      Why spend on testing, when you got paying consumers to do the bug reports for you?
      Because anything more complex than calc.exe is going to have weird bugs that can't discovered within a realistic timeframe to keep release dates. And if I'm not mistaken, open-source software does the same thing. BugZilla anyone? If it weren't for user feedback, a great majority of bugs wouldn't get fixed.
    2. Re:I didn't know that by ady1 · · Score: 2, Interesting

      I agree with the complex software part. The tiny bit of problem is the Microsoft is charging quite a bit of money for the honor of being a beta tester.

      On a completely different note, I've vista installed on one of my PC and the explorer crashes quite often for a 499$ OS.

      My colleagues and friend ask me all the time if they should get vista and I tell them to not waste their time. Even one of my friend bought a laptop with vista preinstalled and he had to revert to XP right after because explorer crashed so often that made the working impossible.

      Is it just me or the quality of Microsoft Products is going down?

    3. Re:I didn't know that by xero314 · · Score: 3, Insightful

      You can write bug free software, it's just several orders of magnitude more expensive and time consuming to write it. I was gonna let all this slide by but after reading that line I had to jump in. This is complete rubish. An absolute line made up by supporters of Agile development and Frauds out to suck millions of dollars from ignorant venture capitalists. Look I'm sick of hearing this. As a software Engineer I have experienced bad software development and good software development, and believe it or not, good, solid, bug free (99.9%) software takes less time to design, write and test, than the majority of the crap beta software corporations like MS spits out to the unsuspecting public. And that's not even getting into the fact that programs like word are far more complex than they need to be to accomplish exactly what they end up doing.

      I'd apologize for the rant but this kind of bullshit spouted by slack ass "Programmers" and "Developers" just pisses me off to no end. Keep thinking your gonna have that job security you always wanted by making sure there's no one else that can weed threw your garbled mesh of spaghetti, when in reality making software that actually works if far more job securing. But then again I would probably be out of work if the "developers" of the world actually did their shit right since organizations would need people like me to clean it all up.

      Fuck the karma, some one had to finally clear this up, too bad no one in a position to actually change things will read this.
    4. Re:I didn't know that by xero314 · · Score: 2, Insightful

      I will assert that the reason you don't find critical bugs in your programs is because they are either trivial or because they aren't stressed enough. You can assert all you would like, but you would be wrong. Oddly enough, bug riddled software like Office Suites are far more trivial, being common place, ordinary and even of little importance, than the most bug free software, including projects I have lead. Non-trivial software, such as where lives are at stake, does not have these types of flaws, or are less likely to have these flaws.

      Even the acknowledged experts in this field such as the OpenSSL and OpenBSD... Anyone that has known me realizes I am no supporter of Software projects that allow pretty much anyone to put their hands in the code (which is not to be confused with the concept of free or open source software), so using the examples of OpenSSL and OpenBSD developers as an example of "experts" is not going to go far. But that being said both of those projects are well above average in quality and that is without the ability to use strict engineering techniques.

      If you are looking for a "silver bullet" to all the woes of software development you are not going to find it, just like the architects and physical engineers of the world have never found one in their fields. But what Engineers have found is that building something right the first time is the most effective (a.k.a. cheapest) way to build. It may be sad but if we started allowing users and clients to sue for bugs in software you would see software become more stable and bug free fast. Yes it does take a lot of resources to build something that will last the test of time, but it's far more effective than rebuilding it for eternity (could you image trying to keep the Great Pyraminds standing had they been built from cheap materials like card board, or should I say papyrus board).
  5. Re:Let's just get this out of the way then... by MassEnergySpaceTime · · Score: 3, Informative

    From wiki:

    "Fuzz testing or fuzzing is a software testing technique that provides random data ("fuzz") to the inputs of a program. If the program fails (for example, by crashing, or by failing built-in code assertions), the defects can be noted."

    --
    Respect the laws of physics, for the laws of physics have no respect for you.
  6. I Wish by Mockylock · · Score: 5, Funny

    I wish I could just pass out when my wife asks me some stupid question that I don't want to answer. Better yet, when I'm asked to fix a bug at work, it would be nice to just roll over and hit the snooze. Let's apply this everywhere.

    --
    "Please, shut up. Just when I think you can't say anything more stupid, you speak again." -Archie Bunker.
  7. Let me see... by AKAImBatman · · Score: 4, Insightful

    ...if I understand this correctly. Basically, a security researcher believes he's found a buffer overflow. However, he has not yet found a way to exploit that overflow because Word keeps crashing. Microsoft says that the crash is preventing any security hazard, and therefore there is none. Correct?

    I hate to say it, but I'm going to have to come down on Microsoft's side on this one. If it's a non-exploitable crash, then it's a simple bug in handling corrupt documents and nothing more. The researcher can ring everyone again once an exploit has been found.

    As for the DoS potential... seriously, why is everything a "Denial of Service" with these guys? It's a bad document. Word crashes. Life goes on. It's not like your computer is going to become unusable because Word crashed. You get minorly inconvenienced by the jerk who sent you the document, you figure out that the doc is bad, then you move on.

    1. Re:Let me see... by belmolis · · Score: 4, Insightful

      If the facts are as you've described, I agree that there isn't a security issue here. There is, however, still a bug. Anytime a program crashes for reasons other than hardware failure, there is a bug. If it takes really unusual input to do it and there are no security consequences, it may be a minor bug, but it is still a bug.

    2. Re:Let me see... by Deadbolt · · Score: 5, Insightful

      I hope you're not serious; if you are, I'm never letting you near any code I'm responsible for.

      By definition, the app crashing is a denial of service. It's no different than sending a Christmas tree packet to an ancient unpatched router: it goes boom, shuts down the network, no network service. Word crashes: boom, document maybe lost, no use of Word.

      A program must be able to recognize invalid input and take appropriate action. Allowing (or forcing) a crash is NOT acceptable.

      --
      "Honey, it's not working out; I think we should make our relationship open-source."
    3. Re:Let me see... by drinkypoo · · Score: 5, Informative

      Exactly. It's expected than any app will crash if you feed it malicious junk.

      Sorry, I don't buy it. The only way that is a valid expectation is if you explicitly tell it to crash when it gets malformed data, which is offensive and stupid. The proper thing to do is to tell it to alert the user if there is malformed data, and then clean up and get ready to parse another document.

      Crashing is definitely a sign that something bad is happening. Traditionally, when an app crashes because of an invalid document, it's writing to some memory it shouldn't be. This is a sign of lazy or stupid programmers not doing proper checking of the input.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    4. Re:Let me see... by Ckwop · · Score: 5, Interesting

      owever, he has not yet found a way to exploit that overflow because Word keeps crashing. Microsoft says that the crash is preventing any security hazard, and therefore there is none.

      The Open BSD guys have a philosophy: "The only difference between a bug and a vulnerability is the intelligence of the attacker."

      I wish more programmers held this view! A bug is an undefined state of the program. It's quite clear that this is a dangerous position for your program to be in. Bug really are baby vulnerabilities. It's best to remove them as soon as you find them.

      Simon

    5. Re:Let me see... by kebes · · Score: 4, Interesting
      I totally agree that calling this a security flaw or DoS is silly. Until it is actually used to exploit the program, it's not a confirmed security flaw.

      However using bad documents to crash Word is still a flaw in Word, in my opinion. The application should just say "Can't open bad/corrupted document" and let the user keep working. In the blog he says:

      The theory is that it is better to crash (at least with client apps) than it is to be running the bad guy's shell code.
      I understand the rationale, but I would argue it's rather sloppy programming that uses a crash as a means to prevent such bad things from happening. Exceptions can be thrown, but they should be caught and used to halt the "bad actions", and revert back to a normal program state.

      Obviously it is better to crash than to execute arbitrary enemy code. However it's better still to just refuse to execute arbitrary code, but otherwise keep running. The problem with using crashing as a security system is that then the "bad guys" will try to crash your application on purpose (calling it a DoS is a stretch, mind you), which opens up new security problems. (A crashing app may expose other security vulnerabilities, disclose otherwise protected information, destabilize other apps/the OS, etc.)
    6. Re:Let me see... by ppanon · · Score: 2, Informative

      It depends. Does the crash only close down that document? Or does it also crash and lose the changes to the other documents that you've been making for the last two hours? I'm betting on the latter since all open Word documents seem to be managed under a single process. And to me losing pending changes to other documents is a DoS.

      How would you feel if you opened a word document, which you received in an e-mail from a co-worker, that then crashed Word and made you lose some important work you had just been entering?

      --
      Laissez lire, et laissez danser; ces deux amusements ne feront jamais de mal au monde. - Voltaire
    7. Re:Let me see... by tkinnun0 · · Score: 3, Insightful

      Exceptions can be thrown, but they should be caught and used to halt the "bad actions", and revert back to a normal program state. In an unsafe language, like C++, as is the case with Word, once you have encountered undefined behavior, all bets are off. There is no way to be sure from within your program that you are not already running the attacker's code. The only thing you can do is tell the OS to shut down your program and hope the call goes through.

      In a safe language, like Java, and with a program that can be expressed as a work queue, you can isolate changes to global state and, in the case of a work item failing, provided your thread isn't in an endless loop, ignore the results from the item and carry on. Of course this doesn't mean that the global state is valid. In fact, a failing work item may be an indication that the program is being moved towards an invalid state, and the proper thing would be to crash.
    8. Re:Let me see... by misleb · · Score: 4, Interesting

      The point is that a malformed documented shouldn't throw a word processor into an unrecoverable state. That is a bug. I don't know whether or not it is a denial of service attack. That is debatable, but not properly handling an exception in a document is definitely a bug. A word processor can simply tell the user, "hey, this document is fucked, I can't open it." If it just crashes, the user could possibly lose data in other open documents. And that is a Bad Thing(tm).

      -matthew

      --
      "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
    9. Re:Let me see... by Jherek+Carnelian · · Score: 3, Insightful

      A program must be able to recognize invalid input and take appropriate action. Allowing (or forcing) a crash is NOT acceptable.
      Sounds like you've never heard of a kernel panic.

      Sometimes immediately dying is the best option - when you reach a point in the code that "should never happen" then you can not count on the integrity of anything else within the program at the time. At that point the ONLY safe option is to "go boom" thus assuring that whatever the problem is, at least it won't corrupt anything else.
    10. Re:Let me see... by Eivind · · Score: 2, Insightful
      A kernel panic indicates one of two things:

      Either a bug in the kernel (included loaded modules)

      Or a malfunction or bug in one of the components the kernel needs to run (example: flaky memory)

      The first are the most common; we somehow got into a state we shouldn't be in. Thus we must have messed up, and the safer choice is to refrain from further actions, since we may be insane in general. These are nevertheless bugs, and should offcourse be acknowledged as such and fixed when possible.

      The second isn't really our fault. It's not really possible to write an OS in such a way that it gets the correct results even when the hardware it runs on gets it wrong. If the OS asks the CPU to calculate 2+2 and the CPU comes back with 5, there's not really much the OS can do about it.

      That being said, there's cases where Linux kernel-panics in situations where it'd be possible to recover. A failed disc can panic a kernel, yet that shouldn't really be possible, except for if that disc is used as swapspace. These are bugs, or at the very least missing features.

    11. Re:Let me see... by shutdown+-p+now · · Score: 2, Insightful

      Sometimes immediately dying is the best option - when you reach a point in the code that "should never happen"
      Yes, but no kind of input thrown at your program should result in the "it should never happen" code being reached (it's called that for a reason). If it is, then the program has a bug.
  8. It's officially 1984 by Mateo_LeFou · · Score: 2, Interesting

    The spokesthing actually contends that the crashes are "a by-design behavior that improves security and stability"

    --
    My turnips listen for the soft cry of your love
  9. Re:I don't see the problem by HolyCrapSCOsux · · Score: 2, Informative

    That could be considered a flaw of word as well. It's more complicated than a text editor should be.

    --
    0xB315AA8D852DCD3F3DCA578FD2E0BF88
  10. Input validation by Skadet · · Score: 2, Insightful

    I'm going to go ahead and say that it's not necessarily a "security risk" as it is lazy coding. The majority of us here know the importance of input validation; just because the file ends in .DOC doesn't make it a bona-fide, working Word document.

    If Word went ahead and executed arbitrary code, that's one thing. But as it stands, it just crashes out. Elegant? Not by a long shot. Security risk? Not so much.

    1. Re:Input validation by idontgno · · Score: 4, Insightful

      If Word went ahead and executed arbitrary code, that's one thing. But as it stands, it just crashes out.

      You do understand that in many cases, a "crash" is when the software attempted to execute random garbage; and that if you tailored the garbage, you would have an arbitrary code execution vulnerability?

      A crash, frankly, is very often an incompletely exploited code execution vulnerability. That may not be so, here; but if the crash is caused by stack or heap corruption, there's a distinct chance the triggering dataset could be made into a shellcode exploit or the like.

      --
      Welcome to the Panopticon. Used to be a prison, now it's your home.
  11. "That's the way it was designed!" by jojoba_oil · · Score: 2, Interesting

    It seems to be a typical response from Microsoft.

    Another example I came across recently is here. What's the point of designing as such?

    1. Re:"That's the way it was designed!" by castle · · Score: 2, Insightful

      WAD is my most favored TLA for such responses, with a parenthetical 4 letter variant WA(P)D. Respectively Working As Designed and Working As (Poorly) Designed.

      Odds are with this particular component, they were on the way to reducing functionality in their core component to force you into buying a third party developed component that was actually well designed and or useful.

  12. To be pedantic for a moment... by AKAImBatman · · Score: 2, Informative

    DoS (Denial of Service), not DDoS (Distributed Denial of Service). There is no "distributed" in crashing these desktop apps.

  13. Better recovery... by kebes · · Score: 3, Insightful

    However, crashing may be the lesser of the evils in many places. In the event that our apps crash, we have recovery mechanisms, ways to report the crash so we know what function had the problem, and so on.
    Okay, handling crashing properly (saving some data, logging errors, etc.) is of course nice. However even the most graceful crash is, as far as "recovery mechanisms" go, pretty bad. A proper recovery mechanism would be rather less disruptive to the user... for instance a prompt that warns the user that something bad happened and the document is being rolled back to before the last action occured. Similarly logging of errors can be done properly without crashing the entire application. A log-file is generated, and the user keeps working even though the last action didn't work, hopefully with some feedback indicating why the last action didn't work.

    I am fully aware that writing bug-free software is impossible. Ultimately, it is unavoidable that crashes will occur. When they do occur, they should be handled as gracefully as possible. However one should not defend one's code (and coding flaws) by saying that "sure it crashes--but the crashes are part of our carefully engineered recovery mechanism!" That's a lame excuse, because if you're aware of a consistent crash condition, you should be able to code so that instead of crashing, the program does something more friendly.
  14. He's got half a point by Red+Flayer · · Score: 3, Interesting

    Say you have a known vulnerability in your code, which fixing would require rebuilding your app from scratch (or damn near close enough to make it too expensive to fix). Also say that you have the capability to detect an attempt to take advantage of the flaw before any damage is done, and that shutting down the app will prevent further damage.

    Wouldn't it be a good idea to shut down the app to prevent your whole network getting hosed? And doesn't the pain-in-the-assitude for the user maybe prevent them from opening shady docs the next time around?

    Admittedly, it would be best if the flaw never existed in the first place. But if fixing the flaw outright is out of the question, why isn't this a good solution?

    --
    "Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai
  15. But seriously.... by beef623 · · Score: 4, Insightful

    I can see Mr. LeBlanc's point, that it's better to crash than open up your system, but it seems like they are taking this awfully lightheartedly. They're still bugs and they still need fixed. I think they are confusing debug features with release features.

  16. Re:Let's just get this out of the way then... by ZachPruckowski · · Score: 4, Funny

    Um, it's defined...in TFA

    Um, read that again, and see if you can find the problem. ;-)

  17. Re:Let's just get this out of the way then... by rucs_hack · · Score: 3, Funny

    there you go, expecting a slashdotter to rtfa. Shame on you...

  18. Word is a bug by dbfruth · · Score: 2, Insightful

    Damn. I thought the whole Word app was a giant bug. Turns out it is a feature that they can charge a lot of money for. It was confusing me since it only seemed useful if you wanted to butcher a document.

  19. Re:Let's just get this out of the way then... by Mateo_LeFou · · Score: 3, Insightful

    "Um, read that again, and see if you can find the problem. ;-)"

    I found two:
    1. No one reads TFA
    2. There are plurality of TFAs ...which means there's an error in your statement, which should read
    "Um, read that again, and see if you can find the problems. ;-)"

    There may be a plurality of errors in your statement, not sure ...

    *head explodes

    --
    My turnips listen for the soft cry of your love
  20. Re:Let's just get this out of the way then... by Anonymous Coward · · Score: 4, Funny

    Would any bright egg here care to explain what the hell an 'appositive phrase' is?

    Yes I could google it, but so will 100,000 other slashdotters, so let's just post the answer here and be done with it.

  21. How Long Before... by Evil+W1zard · · Score: 2, Informative

    Ok so 2 of the 3 bugs result in a DoS type situation and the third could allow for execution of arbitrary code... Using a Fuzzer dont you typically find DoS/Reboot/Crashes first and then more research to include debugging can show where in memory the crash occurs and then you move into the world of tailoring an overflow and allowing for execution of arbitrary code...

    To me DoS'ing a client-side app like Word is an annoyance, but I would expect to see exploit code coming that does do code execution or privilege escalation of some sort and then MS will patch it on Tuesday just like they've been doing for years...

    --
    News Reporters Make Tasty Polar Bear Treats!
  22. To be even more pedantic for a moment... by poopdeville · · Score: 2, Insightful

    Unless you distribute a Word document exploiting the bug by email, for instance.

    --
    After all, I am strangely colored.
  23. But, But... by ColdWetDog · · Score: 4, Funny

    Aharoni said he found the flaws using a "fuzzer," a tool that probes an application for vulnerabilities by sending random input. Two of the three bugs result in a denial-of-service-like situation, with the PC's processor maxed out at 100%, making the machine unusable until it's rebooted.
    Emphasis mine.

    OK, gotcha, but how do you differentiate this from normal Windows behavior?

    --
    Faster! Faster! Faster would be better!
    1. Re:But, But... by camperdave · · Score: 4, Funny

      Because in normal Windows behaviour, the odds would be three out of three.

      --
      When our name is on the back of your car, we're behind you all the way!
  24. explosive code? by Ajehals · · Score: 4, Insightful

    From the linked blog...

    1) Your code blew up, and you're about to get 0wn3d. Yup, it's exploitable, and the customers are not going to be happy.
    2) Your code blew up, and maybe it is exploitable, maybe not.
    3) Your code blew up, and you meant it to blow up, and it's clearly not exploitable.

    Since you are not coding specifically for your application to crash (Or I hope not) surely there can be no 3. 2 is as good as it gets, you have done everything you can to prevent your code "blowing up" you have tried to handle anything that can be thrown at it gracefully, and you have done everything to ensure that when if and when things do go wrong they can do no damage, that's 2, not 3. If you cannot foresee and prevent every possible thing that could cause your application to crash (which you can't), then how can you foresee every possible way in which that unforeseeable crash could be exploited. All you can ever do is your best.

    Next up, from the article:

    Two of the three bugs result in a denial-of-service-like situation, with the PC's processor maxed out at 100%, making the machine unusable until it's rebooted. The third, Aharoni suggested, could be used to introduce remote attack code after an exploit causes an overflow of "wwlib.dll," a crucial Word library. But "code execution is not trivial," he added.

    If described correctly then these bugs all pose a risk. sure the first two are minor risks, the later is major, but all three are bugs that should be listed as security vulnerabilities. I would suggest that the reason that they are currently not being seen as such by Microsoft, is simply that no one can be sure if the conditions required to trigger them could be utilised by anyone wishing to take advantage of them, and thus they are theoretically less threatening than many of the other issues that have plagued Microsoft Applications in the past.

    In the end however we should be simply sating that a problem exists, it may be a security risk, and until it is fixed, we will treat it as such. Anything else (rightly or wrongly) simply smells like someone is covering up issues, and lets be frank, Microsoft doesn't have enough good will for that to be acceptable.

    1. Re:explosive code? by PCM2 · · Score: 2

      3) Your code blew up, and you meant it to blow up, and it's clearly not exploitable.

      Since you are not coding specifically for your application to crash (Or I hope not) surely there can be no 3. 2 is as good as it gets

      But isn't this the whole point of the exception-handling model of software error recovery? Back in the old days, any bug could potentially take down the whole system, only it didn't matter because the OS wasn't multitasking anyway. Under the exception-handling model, an unforeseen condition generates an exception. You've got two choices: Handle it or don't. If an application exception makes it all the way to the OS level without being handled, it results in an application crash. What it doesn't do, on the other hand, is take down the system (assuming everything else is working right). So while it might be sloppy programming to say to yourself, "this exception will almost certainly never, ever get raised, so I'm just not going to handle it," it seems to me like that would be a legit case of #3, above. If the only possible outcome of a condition is an application crash, then it doesn't seem like an exploitable flaw to me. (But then, I guess it goes back again to whether you agree that an application crash counts as a denial of service. I tend to think not.)

      --
      Breakfast served all day!
    2. Re:explosive code? by drinkypoo · · Score: 2, Interesting

      But isn't this the whole point of the exception-handling model of software error recovery?

      There's a reason we call it a crash (or an abend.) It's because we weren't expecting it. We're not talking about a demolition derby here.

      If an exception causes the program to quit safely, it's not a crash, it's an expected termination.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  25. Firefox crashes on malformed intput too by 140Mandak262Jamuna · · Score: 3, Insightful

    Almost all the programs crash on invalid input, even Firefox and OpenOffice. So, hate to say it, MSFT is right in claiming that it is better to crash than to give a command line shell. But so many of the MSFT buffer overrun problems start out as crashes and people keep probing and probing and bingo, it becomes a remote code execution flaw. I thing the Windows Meta File graphics handling bug was a low priority crash bug for a long time before it became a remote code execution vulnerability. So while porturing it as "not a bug", hope they quietly work in the background and fix the issue.

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
  26. Upon additional consultation... by Chris+Mattern · · Score: 3, Funny

    Microsoft declared that they are not crashes at all; they are "rest breaks".

    Chris mattern

  27. I guess it is an attitude problem. by alberion · · Score: 3, Insightful

    I guess it is an attitude problem.
    If they said their software is sold "as it is" and that it possibibly had problems and were humble enough to admit it, there would be fewer MS-haters out there.
    I agree with you on the impossibility of completly testing a software of the complexity of Word. No argument there.

    BTW, calc.exe already GPFed on me. :)

    1. Re:I guess it is an attitude problem. by Achromatic1978 · · Score: 3, Informative
      Small hint: they do exactly that.

      To quote Para. 16 of the Windows XP Home EULA:

      Except for the Limited Warranty and to the maximum extent permitted by applicable law, Microsoft and its suppliers provide the Software and support services (if any) AS IS AND WITH ALL FAULTS, and hereby disclaim all other warranties and conditions, whether express, implied or statutory, including, but not limited to, any (if any) implied warranties, duties or conditions of merchantability, of fitness for a particular purpose, of reliability or availability, of accuracy or completeness of responses, of results, of workmanlike effort, of lack of viruses, and of lack of negligence, all with regard to the Software, and the provision of or failure to provide support or other services, information, software, and related content through the Software or otherwise arising out of the use of the Software. ALSO, THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT WITH REGARD TO THE SOFTWARE.

      Seems pretty much the case to me.

      Don't even try the "Click throughs not legally binding!". It doesn't need to be binding for this - but to claim they don't sell software AS IS is an absolute fallacy, trivially demonstrable.

  28. RTFA - not just Word crashing by PCM2 · · Score: 4, Informative

    ...if I understand this correctly. Basically, a security researcher believes he's found a buffer overflow. However, he has not yet found a way to exploit that overflow because Word keeps crashing.

    Actually, according to the Computerworld article, two of the bugs discovered will peg the processor at 100 percent, forcing a cold reboot that potentially will do a lot more damage than just corrupting your Word documents. Whatever your philosophy otherwise, that really is a denial of service.

    --
    Breakfast served all day!
  29. Re:fuzzer by shystershep · · Score: 2, Funny

    How does saying "light" when you meant "like" make you feel?

    Me, I feel like having another beer.

    --
    The bigotry of the nonbeliever is for me nearly as funny as the bigotry of the believer. - Albert Einstein
  30. I would have been given an F by Dancindan84 · · Score: 2, Insightful

    I'm not 100% certain, but I'm pretty sure that my programming professors would have given me an F if as part of input validation I had put:

    if (isExploit){
    crashApplication();} // this is to prevent abusing an exploit Prof. X... no really...

    ... so how is it that Microsoft (or anyone else) thinks they can argue that this is intended? Does it stop the exploit from being used? Possibly, but that does not mean that they should get to shrug this off as "not an issue". There -has- to be a more elegant way to handle it.

    --
    "Always forgive your enemies; nothing annoys them so much." - Oscar Wilde
  31. Taking a page from Apple... literally by PCM2 · · Score: 5, Interesting

    The old Apple ][ Reference Manual included a few pages of technical terms, with definitions. Buried among entries like track, sector, stack, and interrupt was this gem:

    feature n. A bug, as described by the marketing department.

    --
    Breakfast served all day!
    1. Re:Taking a page from Apple... literally by dgatwood · · Score: 4, Funny

      My sad realization about that definition is that I just looked it up to see if you were serious. You were. Perhaps an even sadder realization is that I was able to reach up to the shelf above my desk and instantly grab a copy of the Apple ][ Reference Manual---right between The TeXbook and an Imagewriter II owner's manual that I used to use as an ASCII table reference before the rise of Google or asciitable.com.

      Sigh. I am, indeed, a geek. I suppose there's no escaping it.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    2. Re:Taking a page from Apple... literally by xsspd2004 · · Score: 3, Funny

      Actually, you can escape it with a backslash (\) on *ix or a caret (^) on Windows.

      --
      This is not an illusion, a rip-off, or a ninja technique!
  32. Re:Let's just get this out of the way then... by alisson · · Score: 4, Funny

    1) It's too much effort to read the article.
    2) It's um... Can you repeat this one, I didn't read it.

  33. You'd rather your router crashed than word? by anss123 · · Score: 2, Interesting

    Meh, it's only Word. Firefox goes down in flames every now and then, but it recovers at the spot it left off so no big deal. I guess the same thing is happening with Word. Annoying but no big deal.

    If you want a 'big deal' you should check out Words (XP and downwards) file handling bug. Now _that's_ brain-dead. Basically, every time you use the undo function Word opens a new file handler. Keep at it and the OS eventually runs out (especially a problem on the Mac) and you can't save your document or open any files.

    Oh, and what was MS's excuse for not fixing this bug sooner? The idiotic teck complained that his debugger crashed because it opened too many handles, so he couldn't fine the bug. Well DUH!

  34. Re:Insightful?! by WhyDoYouWantToKnow · · Score: 2, Funny

    But it's impossible to take you seriously when you employ the *same tactics* of FUD that you like to claim every single time Microsoft says anything.

    You REALLY must be new here if you expect anyone on /. to come up with new and original arguments for why Microsoft sucks.

    --
    "Oh drat these computers, they're so naughty and so complex. I could pinch them."
    Marvin the Martian
  35. Re:Let's just get this out of the way then... by Anonymous Coward · · Score: 4, Informative

    a phrase that is placed in apposition to a noun or another phrase, usually serving to clarify the meaning or intent.

    an appositional phrase, a phrase that clarifies meaning, is a fancy way of saying "redundant"

  36. It was only a matter of time... by brennanw · · Score: 2, Funny

    ... before Microsoft started getting all their ideas from me, instead of the other way 'round:

    http://www.ubersoft.net/d/20030224.html

    but more specifically

    http://www.ubersoft.net/d/20030228.html

    --
    Eviscerati.Org: All Hail the Eviscerati
  37. Pre-processing doesn't work? by guruevi · · Score: 2, Insightful

    I don't know how exactly the bug came above, but don't you think that inputting any UTF-8 text into Word shouldn't crash the system? Ok, I can agree that you don't want to accept bad data, but just reject it then. I mean, Word 2007 is now based on XML (or so they say). If the XML is wrong, it would be simple to detect that using an XML parser, which you could perfect and use for several applications. It's not THAT difficult to create a good set of XML/data parsers which gives you the status OK or NOT OK and then allows it to go into the system.

    In software programming, just as much as in web programming, there is a saying: never trust the input, no matter where (you think) it comes from.

    If it crashes in any other way (overwriting memory, input through plugins like SOAP or so) the same is true, it is Bad Programming (c) because you either didn't check the input, or didn't protect your share of memory.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  38. Re:We work on data driven apps (police RMS) by DaleGlass · · Score: 2, Insightful

    I think your sort of crash is an intentional abort.

    There's a BIG difference between an application writing junk to memory and crashing somewhere in malloc because things are completely hosed, and an application deciding data makes no sense and orderly aborting the operation.

    Your program seems to do the second one, which is good. It's perfectly appropiate for the program to quit if it's for example a commandline program for batch processing. Were it a GUI program you'd stop processing, produce an error, and let the user retry or whatever. You could do that because your program is still working and in a sane state.

    The Word crash isn't that, the application fails completely with an access violation. If you were running it under an IDE you'd be looking at the debugger and a stack trace. MS Word couldn't continue in this situation because at this point the state is corrupt -- there's no hope of recovering from it.

  39. Re:I don't see the problem by qualidafial · · Score: 5, Interesting
    During the last EclipseCon, Hugh Thompson (of in-flight Tetris crashing fame) showed us a hack in notepad discovered using fuzz testing. Open up a fresh notepad and type in the words, "this app can break" (without the quotes). Then save the document to file, close notepad, and double-click the file you just saved to bring it back up in notepad. Everything will appear as squares. Not a major exploit, and definitely not a DoS, but kind of interesting.

    Apparently that specific line of text exploits the way that notepad determines whether the file is encoded in ASCII or Unicode.

  40. Re:What by hey! · · Score: 3, Interesting

    Actually, in my opinion he's right.

    People act as if a crash is the worst thing in the world. Generations of programmers have been trained to think of a crash bug as the ultimate badge of shame. The problem is that it is not, by far, the ultimate mistake.

    I think it's useful to keep this in perspective. It's better that you crash the user's car than run over the user's baby. I always tell guys who work for to to place bugs in the following order of severity (1 is highest severity):

    1) user's system security is compromised.
    2) user's data is corrupted or lost.
    3) give wrong answers that aren't obvious (2 and three might be interchanged in some circumstances)
    4) crash bugs and obvious garbage output

    It's not that crash bugs are good. It's that given a choice between a crash and things higher on the list, you ought to choose the crash.

    This is not a choice that, once upon a time, we had to make. Crashes happen when a condition you hadn't anticipated happen, so they were not (as a rule) a matter of choice.

    Java checked exceptions changed that, and required that I develop clear priorities. For non-programmers, an exception is a condition (usually abnormal) that can occur some place in your program. A checked exception is one that it is mandatory to handle some place in your program, otherwise your program is not valid.

    I'm not religiously against checked exceptions, other than that they're a bad choice for default. The problem is that the places where exceptions occur are often not the right place to handle them. The temptation is to mishandle the exception, particularly exceptions that are rare, at a low level. Sometimes this is a temporary measure so you can get to some initial tests you want to do, and you never get back to undoing it. Sometimes it happens because the programmer doesn't know a good way to handle the exception, so he papers it over.

    The result is that you convert a crash bug into some other kind of bug. Often a bug that's higher on the severity list. That's why converting a checked exception into a non-checked exception is often the best course of action, even though it creates a possible crash condition later on.

    Automated testing does, or potentially can, stand in for the function of checked exceptions with less risk. Some kind of annotation that was integrated with unit testing might be ideal.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  41. Re:We work on data driven apps (police RMS) by I'm+Don+Giovanni · · Score: 2, Informative

    According to the article, the crash in question is a result of Word using the SafeIntOnOverflow() function to deal with integer-overflow. That function throws an exception on integer overflow. That the function is being used in the code is evidence that the code is indeed checking the validity of an integer. But apparently there's no good way to recover from that situation, so they don't bother to catch the thrown exception and let it crash. Seems good to me. The only reason there was integer-overflow in the first place is that some researcher was running the app in a debugger and feeding it random data.

    Now, someone could intentionally create a corrupt document that causes integer-overflow, which would cause the exception and crash, but real documents won't cause that behavior (notwithstanding other possible bugs).

    --
    -- "I never gave these stories much credence." - HAL 9000
  42. My favourite Windows error message by AliasMarlowe · · Score: 2, Funny

    "Error: the operation completed successfully"
    I kid you not! This was common in Win98 and observed also in Win2k - if an app crashed, causing DrWatson to pop up and offer to save some kind of crash log, just click the save as button, and then cancel the save. Voila.

    --
    Those who can make you believe absurdities can make you commit atrocities. - Voltaire
    1. Re:My favourite Windows error message by Matt+Perry · · Score: 3, Interesting

      "Error: the operation completed successfully"
      I kid you not! This was common in Win98 and observed also in Win2k - if an app crashed, causing DrWatson to pop up and offer to save some kind of crash log, just click the save as button, and then cancel the save. Voila.
      I knew I saved this error message for a reason. Years ago some colleagues and I saw this error while installing some high-priced, fancy-pants software and just had to get a screenshot.
      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  43. Re:I don't see the problem by CyberSlugGump · · Score: 2, Informative


    Wow. I thought this was a joke; but I just tried this on Windows XP, and it really happens as the poster describes.

  44. where do you want to go today? **FATAL EXCEPTION** by hxnwix · · Score: 2, Interesting

    It's a bad document. Word crashes. Life goes on. You're right, you know. And you're not just right about word - this design paradigm clearly extends across the entire Microsoft product line, from the most basic to the most mission-critical:

    "If you understand computers, you know that a computer normally is immune to the character of the data it processes," he wrote in the June U.S. Naval Institute's Proceedings Magazine. "Your $2.95 calculator, for example, gives you a zero when you try to divide a number by zero, and does not stop executing the next set of instructions. It seems that the computers on the Yorktown were not designed to tolerate such a simple failure."

    Microsoft running a warship? What could possibly go wrong? Oh yeah - absolutely everything, since Microsoft can't be bothered to sanity check input.

    FYI, Microsoft screwed up here and it's difficult to defend them in this instance without coming off as a dunce yourself.
  45. Re:I don't see the problem by VGPowerlord · · Score: 2, Informative

    Actually, I can think of two new features it's gotten since Windows for Workgroups:
    1. The ability to open files larger than 64KB... I'm not kidding, try it.
    2. The ability to save and display files in UTF-8 and UCS-2/UTF-16.

    A bug in the API that the latter uses is actually part of the problem the grandparent mentioned.

    Of course, no one should use Notepad for doing anything useful... As a program, it does even less than its predecessor, MS-DOS's Edit.

    --
    GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  46. Walk into a store by Peaker · · Score: 3, Insightful

    Hahahaha!
    That is so early 90's!
    Hello?? We have the internet!
    Software can be downloaded!

    In Windows, I can't just type in "office", click the resulting "kde office" and "open office" programs, and have them automatically downloaded for me, without fuel being burnt to get the bits from there to my computer. Amazing!

    Also, I can just type in almost anything I may want my computer to do - and behold, one of more than 10,000 programs shows up which can be installed with a single click!

    Oh wait, there's more. When I play a movie in full-screen, a bunch of "Would you like to update me?" dialogs of various programs don't jump up at me!
    In fact, *all* (and that means all software you have) updating is done from a central location - by clicking the update icon.

    Oh, Windows doesn't have that? Pitty, maybe I should stick to Linux!

    1. Re:Walk into a store by Peaker · · Score: 2, Interesting

      1) You can't just type "office" anywhere in Linux and get the same same result either, you've got to type it a certian way and in specific places to get a list of apps to instal. In other words, you still have to go through steps. They might be different steps than you take in windows, but steps none the less. Don't front. And you know, if the google search field counts, you can do what you suggest on ANY OS that supports a browser.

      You have to type it in a specific text box - that of your package manager.
      And then, the various alternatives are 1 click away.
      That is never true in Windows, it is much more difficult and involves far more to find, download and install from the web. And far worse, it involves far worse trust in untraceable entities! My packages are signed by the maintainers who registered themselves and are trackable.

      2) Anyone who says (or implies) that you can't legally download software or updates using windows is just plain ignorant.

      I didn't say you couldn't legally download, I said you couldn't download the updates for your entire software repository (including not just Microsoft software, but also your games, your Instant Messangers, Photo editors, etc) from one central location, which remains true.

      3) You can't avoid burning fuel to bring those bits to your desktop, unless you've suddenly discovered a new way of powering the world that you also installed into every power generation station on the planet while no one was looking... We generate power by (in what, say 80% of cases) by using some sort of toxic fuel... Bits don't move themselves. Their carbon footprint might be smaller than your car's, but it's still there.

      Talk about nitpicking! Yes, some fuel is burnt (unless wind or solar power is powering those routers, ofcourse), but to compare that to the fuel burnt to power the car to and from the store to carry the bits is absurd.
  47. In case you want to know why this happens by Taagehornet · · Score: 3, Informative

    While perhaps producing some rather amusing results, this is a unfortunate but unavoidable consequence of Notepad having to support a variety of encodings of text files.

    It's not really news though, and I doubt Hugh Thompson deserves any credit, Raymond Chen explained why things behave like this back in 2004.