Re: Disabling External Entities in libxml By Default

From: Date: Thu, 30 Jul 2015 18:57:25 +0000
Subject: Re: Disabling External Entities in libxml By Default
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-87415@lists.php.net to get a copy of this message
Hi! > The problem here is that imagine the following: I think if we separate the loading the initial file (i.e., staring point of the XML parser) and the loading the entities from that file (which is not happening right now) we'd solve many BC problems. Not sure about SOAP, but many others for sure. > I know that you want it to work, but this is actually a great place to > fail, because you're loading a trusted resource over HTTP. Meaning > that an attacker could MITM and inject malicous XML into the response, > and own your server without even needing to own the endpoint. I feel like XML parser is a wrong place to solve this problem, transport security can be done in HTTPS, signatures, etc. Otherwise many protocols that rely on XML - such as SAML, which is quite widely used - would be completely useless. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#87415) next »