|
|
|
|
|
by tow21
6154 days ago
|
|
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. |
|
My guess is that to distinguish between 'legitimate' cases and 'attacks' is on par with solving the halting problem.