PHP < 7.1.0 Multiple Vulnerabilities

Critical Nessus Network Monitor Plugin ID 9843

Synopsis

The remote web server uses a version of PHP that is affected by multiple attack vectors.

Description

Versions of PHP prior to 7.1.0 are vulnerable to the following issues :

- A flaw exists that is due to 'parse_url' returning the incorrect host. This may allow a remote attacker to have an impact that may include bypassing authentication, or conducting open redirection and server-side request forgery attacks, depending on how the function is implemented. (OSVDB 145227)
- An overflow condition exists in the 'dynamicGetbuf()' function in 'gd_io_dp.c'. The issue is triggered as certain input is not properly validated. With a specially crafted string, a remote attacker can cause a stack-based buffer overflow, resulting in a denial of service in a process utilizing the language or potentially allowing the execution of arbitrary code. (OSVDB 145715)
- A use-after-free error exists in the 'unserialize()' function related to uses of '__wakeup' which modify properties. This may allow a remote attacker to dereference already freed memory and potentially execute arbitrary code. (OSVDB 146579)
- A use-after-free error exists that is triggered when handling unserialized object properties. With a specially crafted request, a remote attacker can dereference already freed memory and potentially execute arbitrary code. (OSVDB 149442)

Solution

Upgrade to PHP version 7.1.0 or later.

See Also

http://php.net/ChangeLog-7.php#7.1.0

Plugin Details

Severity: Critical

ID: 9843

File Name: 9843.prm

Family: Web Servers

Published: 2017/01/02

Modified: 2017/01/02

Dependencies: 5565

Risk Information

Risk Factor: Critical

CVSSv2

Base Score: 10

Temporal Score: 8.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:ND/RL:OF/RC:C

CVSSv3

Base Score: 9.8

Temporal Score: 9.3

Vector: CVSS3#AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS3#E:X/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:php:php

Patch Publication Date: 2016/11/10

Vulnerability Publication Date: 2016/10/05

Reference Information

CVE: CVE-2016-7479, CVE-2016-8670, CVE-2016-9138

BID: 93594, 95151