SquirrelMail 1.4.22 Deliver_SendMail.class.php initStream input validation

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.2$0-$5k0.00

Summaryinfo

A vulnerability was found in SquirrelMail 1.4.22. It has been rated as critical. Affected is the function initStream of the file Deliver_SendMail.class.php. Performing a manipulation results in input validation. This vulnerability is known as CVE-2017-7692. Remote exploitation of the attack is possible. Furthermore, an exploit is available. To fix this issue, it is recommended to deploy a patch.

Detailsinfo

A vulnerability was found in SquirrelMail 1.4.22 (Mail Client Software). It has been classified as critical. This affects the function initStream of the file Deliver_SendMail.class.php. The manipulation with an unknown input leads to a input validation vulnerability. CWE is classifying the issue as CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. This is going to have an impact on confidentiality, integrity, and availability.

The bug was discovered 04/19/2017. The weakness was published 04/19/2017 by Filippo Cavallarin (Website). It is possible to read the advisory at wearesegment.com. This vulnerability is uniquely identified as CVE-2017-7692 since 04/11/2017. The exploitability is told to be easy. It is possible to initiate the attack remotely. The successful exploitation requires a authentication. Technical details and a public exploit are known. The reason for this vulnerability is this part of code:

$this->sendmail_command = "$sendmail_path $this->sendmail_args -f$envelopefrom";     
$stream = popen(escapeshellcmd($this->sendmail_command), "w");

A public exploit has been developed by Dawid Golunski in Bash and been published immediately after the advisory. The exploit is shared for download at wearesegment.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 15 days. During that time the estimated underground price was around $0-$5k. By approaching the search of inurl:Deliver_SendMail.class.php it is possible to find vulnerable targets with Google Hacking. The vulnerability scanner Nessus provides a plugin with the ID 100176 (Debian DLA-941-1 : squirrelmail security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 176031 (Debian Security Update for squirrelmail (DSA 3852-1)).

Applying a patch is able to eliminate this problem. The bugfix is ready for download at wearesegment.com. A possible mitigation has been published immediately after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:

$this->sendmail_command = escapeshellcmd("$sendmail_path $this->sendmail_args -f") . escapeshellarg($envelopefrom);
$stream = popen($this->sendmail_command, "w");

The vulnerability is also documented in the databases at Exploit-DB (41910), Tenable (100176), SecurityFocus (BID 98067†) and SecurityTracker (ID 1038312†). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

Video

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.6
VulDB Meta Temp Score: 7.2

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

NVD Base Score: 8.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

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

NVD Base Score: 🔍

Exploitinginfo

Class: Input validation
CWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: Dawid Golunski
Programming Language: 🔍
Download: 🔍
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 100176
Nessus Name: Debian DLA-941-1 : squirrelmail security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 100759
OpenVAS Name: SquirrelMail Remote Code Execution Vulnerability
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍

Patch: wearesegment.com

Timelineinfo

04/04/2017 🔍
04/11/2017 +7 days 🔍
04/19/2017 +8 days 🔍
04/19/2017 +0 days 🔍
04/19/2017 +0 days 🔍
04/19/2017 +0 days 🔍
04/19/2017 +0 days 🔍
04/19/2017 +0 days 🔍
04/20/2017 +1 days 🔍
04/20/2017 +0 days 🔍
04/23/2017 +3 days 🔍
05/16/2017 +23 days 🔍
08/23/2024 +2656 days 🔍

Sourcesinfo

Advisory: wearesegment.com
Researcher: Filippo Cavallarin
Status: Confirmed

CVE: CVE-2017-7692 (🔍)
GCVE (CVE): GCVE-0-2017-7692
GCVE (VulDB): GCVE-100-100275

OVAL: 🔍

SecurityFocus: 98067 - Squirrelmail CVE-2017-7692 Command Injection Vulnerability
OSVDB: - CVE-2017-7692 - Squirrelmail - Code Execution Issue
SecurityTracker: 1038312

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

Entryinfo

Created: 04/20/2017 10:26
Updated: 08/23/2024 19:13
Changes: 04/20/2017 10:26 (89), 09/20/2020 14:47 (6), 12/20/2020 23:05 (2), 08/23/2024 19:13 (17)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!