SquirrelMail 1.4.22 Deliver_SendMail.class.php initStream input validation
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.2 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
Video

CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.6VulDB 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: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Input validationCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍
Patch: wearesegment.com
Timeline
04/04/2017 🔍04/11/2017 🔍
04/19/2017 🔍
04/19/2017 🔍
04/19/2017 🔍
04/19/2017 🔍
04/19/2017 🔍
04/19/2017 🔍
04/20/2017 🔍
04/20/2017 🔍
04/23/2017 🔍
05/16/2017 🔍
08/23/2024 🔍
Sources
Advisory: wearesegment.comResearcher: 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
Entry
Created: 04/20/2017 10:26Updated: 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.
No comments yet. Languages: en.
Please log in to comment.