Rewterz Threat Alert – Possible APT28 Targeted attacks against mining corporations in Kazakhstan
October 25, 2019Rewterz Threat Alert – Possible New BadPatch Campaign Uses Multi-Component Python Compiled Malware
October 28, 2019Rewterz Threat Alert – Possible APT28 Targeted attacks against mining corporations in Kazakhstan
October 25, 2019Rewterz Threat Alert – Possible New BadPatch Campaign Uses Multi-Component Python Compiled Malware
October 28, 2019Severity
High
Analysis Summary
Multiple vulnerabilities have been discovered in PHP, the most severe of which could allow for arbitrary code execution. PHP is a programming language originally designed for use in web-based applications with HTML content. PHP supports a wide variety of platforms and is used by numerous web-based software applications. Successfully exploiting the most severe of these vulnerabilities could allow for arbitrary code execution in the context of the affected application. Depending on the privileges associated with the application, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights. Failed exploitation could result in a denial-of-service condition.
Version 7.1.33
· Bug #78599 (env_path_info underflow in fpm_main.c can lead to RCE)
Version 7.2.24
· Bug #78535 (auto_detect_line_endings value not parsed as bool)
· Bug #78620 (Out of memory error)
· Bug #78442 (‘Illegal component’ on exif_read_data since PHP7)
· Bug #78599 (env_path_info underflow in fpm_main.c can lead to RCE)
· Bug #78579 (mb_decode_numericentity: args number inconsistency)
· Bug #78609 (mb_check_encoding()
· Bug #76809 (SSL settings aren’t respected when persistent connections are used)
· Bug #78623 (Regression caused by “SP call yields additional empty result set”)
· Bug #78624 (session_gc return value for user defined session handlers)
· Bug #76342 (file_get_contents waits twice specified timeout)
· Bug #78612 (strtr leaks memory when integer keys are used and the subject string shorter)
· Bug #76859 (stream_get_line skips data if used with data-generating filter)
· Bug #78641 (addGlob can modify given remove_path value)
Version 7.3.11
· Bug #78535 (auto_detect_line_endings value not parsed as bool)
· Bug #78620 (Out of memory error)
· Bug #78442 (‘Illegal component’ on exif_read_data since PHP7)
· Bug #78599 (env_path_info underflow in fpm_main.c can lead to RCE)
· Bug #78413 (request_terminate_timeout does not take effect after fastcgi_finish_request)
· Bug #78633 (Heap buffer overflow (read)
· Bug #78579 (mb_decode_numericentity: args number inconsistency)
· Bug #78609 (mb_check_encoding()
· Bug #76809 (SSL settings aren’t respected when persistent connections are used)
· Bug #78525 (Memory leak in pdo when reusing native prepared statements)
· Bug #78272 (calling preg_match()
· Bug #78623 (Regression caused by “SP call yields additional empty result set”)
· Bug #78624 (session_gc return value for user defined session handlers)
· Bug #76342 (file_get_contents waits twice specified timeout)
· Bug #78612 (strtr leaks memory when integer keys are used and the subject string shorter)
· Bug #76859 (stream_get_line skips data if used with data-generating filter)
· Bug #78641 (addGlob can modify given remove_path value)
Impact
- Arbitrary code execution
- Denial of service
Affected Vendors
php
Affected Products
- PHP 7.1 Prior to Version 7.1.33
- PHP 7.2 Prior to Version 7.2.24
- PHP 7.3 Prior to Version 7.3.11
Remediation
- Upgrade to the latest version of PHP immediately, after appropriate testing.
- Verify no unauthorized system modifications have occurred on system before applying patch.
- Apply the principle of Least Privilege to all systems and services.
- Remind users not to visit websites or follow links provided by unknown or untrusted sources.