[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: XML parsers use what computational power?

  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 10 Apr 2013 07:24:47 -0400

Re:  RE: XML parsers use what computational power?
I think we had this conversation at least a dozen years ago, in 
conversation about the million-laughs attack.

As attack surface area goes, entity resolution isn't exactly drastic. 
It's not hard to apply a minor amount of defensive programming to halt 
this attack.  It's also an extremely dull attack, a denial of service at 
best.

While I recognize that you are compiling rules for an extremely 
conservative audience, I often worry that they and their experts fear 
their own shadows most of all.  Perhaps they should stick to plain 
unformatted text 'processed' by humans with security clearances?

Thanks,
Simon

On 4/10/13 5:43 AM, Costello, Roger L. wrote:
> Hi Folks,
>
> Resolving these entities:
>
> <!ENTITY ha1 "ha"> <!ENTITY ha2 "&ha1;&ha1;"> ... <!ENTITY ha128
> "&ha127;&ha127;">
>
> requires an amount of memory that is exponential to the number of
> entities.
>
> Therefore an XML parser requires more computational power than a
> linear bounded automata [1]. Furthermore:
>
> Linear bounded automata are acceptors for the class of
> context-sensitive languages. [1]
>
> Therefore XML is more powerful than a context-sensitive language.
>
> Experts recommend [2] that an input language not require more
> computational power than a deterministic pushdown automata. The XML
> language requires much more computational power than this.
>
> Therefore, XML as an input language is too complex. It requires too
> much computational power. It's attack surface is too large (as
> evidenced by the dozens (hundreds) of vulnerabilities exposed in the
> last decade).
>
> /Roger
>
> [1] Linear automata:
> http://en.wikipedia.org/wiki/Linear_bounded_automaton
>
> [2] Input languages should not require a computational power greater
> than D-PDA:
> http://www.cs.dartmouth.edu/~sergey/langsec/papers/Sassaman.pdf
>
>
> _______________________________________________________________________
>
>  XML-DEV is a publicly archived, unmoderated list hosted by OASIS to
> support XML implementation and development. To minimize spam in the
> archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or
> unsubscribe: xml-dev-unsubscribe@lists.xml.org subscribe:
> xml-dev-subscribe@lists.xml.org List archive:
> http://lists.xml.org/archives/xml-dev/ List Guidelines:
> http://www.oasis-open.org/maillists/guidelines.php
>


-- 
Simon St.Laurent
http://simonstl.com/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.