Security update: Drupal 8.7.1 & 7.67

Written by Mark Enrega on Thursday, May 9, 2019

<p>Drupal has released a <strong>moderately critical security update</strong> for both Drupal 8 (versions 8.6.16 &amp; 8.7.1) and Drupal 7 (version 7.67). This security release fixes third-party dependencies included in or required by Drupal core. It has been discovered that the protection against insecure deserialization can be by-passed in Phar Stream Wrapper component.</p>

<p>In order to intercept file invocations like file_exists or stat on compromised PHAR files, the base name has to be determined and checked before allowing it to be handled by PHP PHAR stream handling. The current implementation is vulnerable to path traversal leading to scenarios where the PHAR file to be assessed is not the actual (compromised) file.</p>

<h3>What is a PHAR file and how is it used?</h3>

<p>In software, a PHAR (PHP Archive) file is a package format to enable distribution of applications and libraries by bundling many PHP code files and other resources (e.g. images, style sheets, scripts etc.) into a single archive file. PHAR files may be in one of three formats: tar, and ZIP, which are compatible with their respective tooling, and a custom PHAR format. Drupal uses third-party dependencies to create, extract and manage PHAR files within its core functionality.</p>

<h3>Solution</h3>

<p>To mitigate the vulnerability that has been identified, all Drupal 7 &amp; 8 websites should be updated to the latest version of Drupal.</p>

<h3>Action</h3>

<p>All Drupal 7 &amp; 8 websites that are hosted with Enrega will be updated by our support team. For more information about the update process, please see our <a href="/websites/support/security-updates-your-website" title="Security updates for your Drupal website">security updates for your website</a> page.</p>

<p>If you have a shared hosting account, you can see our progress by following our <a href="https://twitter.com/enregaSupport&quot; target="_blank" title="Follow our support team on Twitter">support team on Twitter</a>. If you have a custom website that is not in shared hosting, we'll let you know by email when we're done.</p>

<h3>References</h3>

<ul><li><a href="https://www.drupal.org/sa-core-2019-007&quot; target="_blank" title="Drupal core - Moderately critical - Third-party libraries - SA-CORE-2019-007">Drupal core - Moderately critical - Third-party libraries - SA-CORE-2019-007</a></li>
<li><a href="https://en.wikipedia.org/wiki/PHAR_(file_format)&quot; target="_blank" title="What is a PHAR file?">What is a PHAR file?</a></li>
<li><a href="https://www.drupal.org/project/drupal/releases/8.7.1&quot; target="_blank" title="Drupal update version 8.7.1">Drupal update version 8.7.1</a></li>
<li><a href="https://www.drupal.org/project/drupal/releases/8.6.16&quot; target="_blank" title="Drupal update version 8.6.16">Drupal update version 8.6.16</a></li>
<li><a href="https://www.drupal.org/project/drupal/releases/7.67&quot; target="_blank" title="Drupal update version 7.67">Drupal update version 7.67</a></li>
<li><a href="https://typo3.org/security/advisory/typo3-psa-2019-007/&quot; target="_blank" title="TYPO3-PSA-2019-007: By-passing protection of Phar Stream Wrapper Interceptor">TYPO3-PSA-2019-007: By-passing protection of Phar Stream Wrapper Interceptor</a></li>
</ul>