SSRF in Guzzle library in Drupal - CVE-2016-5385

 

SSRF in Guzzle library in Drupal - CVE-2016-5385

Published: August 27, 2016


Vulnerability identifier: #VU346
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:N/SA:N]
CVE-ID: CVE-2016-5385
CWE-ID: CWE-918
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands on vulnerable system.

The vulnerability exists due to usage of third-party PHP library Guzzle for performing server-side HTTP requests. A remote attacker can use malicious server that returns a 301 HTTP redirect response to local resource to connect to services within internal network or on localhost.

Successful exploitation of this vulnerability may allow an attacker to perform SSRF attack to retrieve information for further attacks against vulnerable system by performing unauthorized connections to local resources, gain access to sensitive information and compromise vulnerable system.

Note: this vulnerability is being actively exploited in the wild and is referred as HTTPoxy.


Affected software

Drupal
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Fedora
Red Hat Enterprise Linux EUS Compute Node
Slackware Linux
php-guzzlehttp-guzzle
php54-php (Red Hat package)
php55-php (Red Hat package)
rh-php56-php (Red Hat package)
php
php-guzzlehttp-guzzle6

How to mitigate CVE-2016-5385

Install the latest Drupal version 8.1.7:
https://www.drupal.org/project/drupal/releases/8.1.7

php-guzzlehttp-guzzle - addressed in versions 5.3.1-1.el7, 5.3.1-1.fc23, 5.3.1-1.fc24
php54-php (Red Hat package) - addressed in versions 5.4.40-4.el6, 5.4.40-4.el7
php55-php (Red Hat package) - addressed in versions 5.5.21-5.el6, 5.5.21-5.el7
rh-php56-php (Red Hat package) - addressed in versions 5.6.5-9.el6, 5.6.5-9.el7
php - addressed in versions 5.6.24-1.fc23, 5.6.24-2.fc24
php-guzzlehttp-guzzle6 - addressed in versions 6.2.1-1.fc23, 6.2.1-1.fc24

External References

Related Security Bulletins