News for hackers. Stuff that matters.
Re:XML flaws threaten 'enormous' array of apps by tow21 on Thursday August 06, 2009 @08:13AM (#745280)
Poorly written XML parsers (and I've written my fair share) are always open to DOS attacks; XML has no upper bound on element names, attribute value length, stack depth ...

http://en.wikipedia.org/wiki/Billion_laughs

Same is mostly true of JSON parsers as well of course.

If you let potentially hostile users feed arbitrary data into any of these, even a totally non-buggy, perfectly conformant parser is wide-open to being abused via DOS.

Re:XML flaws threaten 'enormous' array of apps by jacquesm on Thursday August 06, 2009 @08:18AM (#745286)
That's a nasty little xml document. Interesting how any kind of simple macro expansion system is wide open to this kind of attack.

My guess is that to distinguish between 'legitimate' cases and 'attacks' is on par with solving the halting problem.

Re:XML flaws threaten 'enormous' array of apps by roc on Thursday August 06, 2009 @08:55AM (#745337)
Somehow I'm surprised that XML/JSON libraries written since the 90s would have the same core flaw as string libraries written in the 70s.

I know I shouldn't be. But here I am, surprised.

Re:XML flaws threaten 'enormous' array of apps by jerf on Thursday August 06, 2009 @10:50AM (#745571)
Well, they're both written in the same language. That ought to be a Big Fat Steaming Clue (TM).

Someday, I'd like to see a nice library written in something like O'Caml or Haskell exposed as a C interface that exists solely to be a library. I know it's technically possible today, but it doesn't seem to have penetrated into the public consciousness that even a C library doesn't actually have to be written in C anymore. (It may not be slick yet, but only because people aren't doing it, chicken and egg. There's no fundamental stopper.) I sure as hell wouldn't write a "C" library in C if I had anything remotely resembling a choice.

(Of course, that only solves string bobbles, not the "infinite memory consumption required" problem, but even then those other languages can have somewhat cleaner, clever solutions than in C.)

Re:XML flaws threaten 'enormous' array of apps by ajross on Thursday August 06, 2009 @12:11PM (#745764)
The face that no such libraries exist might be interpreted as a Big Fat Steaming Clue (trademark used without license).

Language geeks need to start thinking seriously about practical infrastructure issues before any of this happens. The existing infrastructure people aren't going to start using Haskell simply because you tell them too.

Re:XML flaws threaten 'enormous' array of apps by bsaunder on Thursday August 06, 2009 @10:47AM (#745562)
Here's the original press release from the company:

http://www.codenomicon.com/news/press-releases/2009-08-05.sh...

And a CERT-FI advisory:

http://www.cert.fi/en/reports/2009/vulnerability2009085.html

Also the expat-bug and expat-discuss mailing lists were very active in January/February with seemly related issues:

http://mail.libexpat.org/pipermail/expat-bugs/2009-January/t...

http://mail.libexpat.org/pipermail/expat-discuss/2009-Februa...

Re:XML flaws threaten 'enormous' array of apps by jcromartie on Thursday August 06, 2009 @08:03AM (#745262)
The original article sounds like a scare/marketing piece:

    "Targets: Anything that uses XML"
Re:XML flaws threaten 'enormous' array of apps by DanielStraight on Thursday August 06, 2009 @08:00AM (#745259)
Pretty much a useless article without some explanation of what the flaw is.
Re:XML flaws threaten 'enormous' array of apps by kevindication on Thursday August 06, 2009 @11:19AM (#745649)
Agreed. Also: "3-dimensional programs" are affected!
Re:XML flaws threaten 'enormous' array of apps by sixpoint8 on Thursday August 06, 2009 @09:17AM (#745370)
So then there is nothing wrong with XML… There is everything wrong with a few parsers.

Wouldn't a better title be "XML Parser Flaws Doom Computing World"?

Re:XML flaws threaten 'enormous' array of apps by cema on Thursday August 06, 2009 @07:33AM (#745213)
Because of the nature of the flaw, details have not been published. (Also see the original article at http://www.codenomicon.com/labs/xml/) Not clear what can be done about the issue, and how bad the issue is. Should we just wait for it to be resolved?
Re:XML flaws threaten 'enormous' array of apps by sgoranson on Thursday August 06, 2009 @08:48AM (#745331)
Pretty skeptical this flaw could be in "virtually every open-source XML library available". Seems unlikely a million brains collectively missed whatever this is.
Re:XML flaws threaten 'enormous' array of apps by jrockway on Thursday August 06, 2009 @09:05AM (#745354)
You are underestimating how easy it is to write insecure C code.

But it would be nice to know if this is expat, libxml2, or what.

Re:XML flaws threaten 'enormous' array of apps by philh on Thursday August 06, 2009 @11:11AM (#745630)
My understanding is it's not a single flaw. Virtually every XML library available is flawed, but each in their own way.
Re:XML flaws threaten 'enormous' array of apps by jeroen on Thursday August 06, 2009 @07:54AM (#745241)
"xml parser flaws"
Re:XML flaws threaten 'enormous' array of apps by tybris on Thursday August 06, 2009 @07:50AM (#745234)
Unless they can trigger an infinite loop I'm not really worried about Java/Python based web services being affected. Any exception should be caught on a per-request basis.