Random photo
Loading...
Domains for sale
|
May 4, 2005.NET 2.0 prohibits DTD in XML by defaultYep, no DTD is allowed by default in the .NET 2.0 Beta2: XmlReaderSettings.ProhibitDtd Property (System.Xml) That's for sure contradicts "Allow all XML syntax" gospel, but looks like Microsoft takes security very seriously nowadays. Well, at least Microsoft's XML team. Most likely that was a hard decision, but may be not since what are the options here in the face of the billions of laughs attack? If 1Kb well-formed XML document can hog all your CPU and memory when you just open it in a browser, which processes DTD, such as IE? Well, sure it's just a default value and can be changed. But defaults are more than just defaults and I bet most .NET 2.0 applications won't accept XML with DTD. That's sort of a milestone in XML history. May 4, 2005 6:29 PM
| #System.Xml v2.0
Comments
I'd prefer less disruptive way for sure... But which one do you mean? Posted by: Oleg Tkachenko at May 4, 2005 10:45 PMBut is it a step into the right direction? There are less disruptive ways to defend against that kind of attack... Post a comment
Listed below are links to weblogs that reference this post:
I bookmark del giorno #4 from Lorenzo Barbieri @ UGIblogs! |