Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87372 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31821 invoked from network); 29 Jul 2015 20:37:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2015 20:37:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:36686] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/60-25901-3A939B55 for ; Wed, 29 Jul 2015 16:37:56 -0400 Received: by lagw2 with SMTP id w2so13404009lag.3 for ; Wed, 29 Jul 2015 13:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1lbQk+nzLFRS9upMI0dpdh/x4PUWsDyr9uQ2b7DoC+0=; b=JY1Jyc+j5W6HkGZcryuTMGWZkG/ldjjueglLmWMLQB+JxG0j4gu3FTRU+Tq6O/WW74 IeAG9NM7nYrf8XkHbAlzAAjPw7p9hvO/lvJxSjdsIlxepW4cAd1+eBtbLJSZA/TzgKms 9lUsB+g/pwe+TP5NxAwspSnjxdqmJoEHrMovPM/p2eExq3V1Dc7h4QN1kxmOTwZI8KVG NN0lEosgw3z1XJEcuMu7gMPKKU0LJPqMKubUiy1TJLY/bi13HNWmysPPwJCN6x7fEKOY Dg979KuyKQNF8FDf8x2JIX0YkhSyDQNFGEMiOUuuNkl8N5nefnc7+DdKn8ZGwgPwH1dj kQiA== MIME-Version: 1.0 X-Received: by 10.152.170.234 with SMTP id ap10mr40810656lac.28.1438202272229; Wed, 29 Jul 2015 13:37:52 -0700 (PDT) Received: by 10.25.90.75 with HTTP; Wed, 29 Jul 2015 13:37:52 -0700 (PDT) Date: Wed, 29 Jul 2015 16:37:52 -0400 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Disabling External Entities in libxml By Default From: ircmaxell@gmail.com (Anthony Ferrara) All, I wanted to float an idea by you for PHP 7 (or 7.1 depending on the RM's feedback). Currently, PHP by default is vulnerable to XXE attacks: https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing To bypass this, you need to turn off external entity loading: libxml_disable_entity_loader(true); What I'm proposing is to disable entity loading by default. That way it requires developers to opt-in to actually load external entities. Thoughts? Anthony