CVE-2017-7692 Detail
Modified
This vulnerability has been modified since it was last analyzed by the NVD. It is awaiting reanalysis which may result in further changes to the information provided.
Current Description
SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injection of arbitrary command parameters. The problem is in -f$envelopefrom within the sendmail command line. Hence, if the target server uses sendmail and SquirrelMail is configured to use it as a command-line program, it's possible to trick sendmail into using an attacker-provided configuration file that triggers the execution of an arbitrary command. For exploitation, the attacker must upload a sendmail.cf file as an email attachment, and inject the sendmail.cf filename with the -C option within the "Options > Personal Informations > Email Address" setting.
Source:
MITRE
Description Last Modified:
04/27/2017
View Analysis Description
Analysis Description
SquirrelMail 1.4.22 allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injection of arbitrary command parameters. The problem is in -f$envelopefrom within the sendmail command line. Hence, if the target server uses sendmail and SquirrelMail is configured to use it as a command-line program, it's possible to trick sendmail into using an attacker-provided configuration file that triggers the execution of an arbitrary command. For exploitation, the attacker must upload a sendmail.cf file as an email attachment, and inject the sendmail.cf filename with the -C option within the "Options > Personal Informations > Email Address" setting.
Source:
MITRE
Description Last Modified:
04/20/2017
Impact
CVSS v3.0 Severity and Metrics:
Base Score:
8.8 HIGH
Vector:
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
(V3 legend)
Impact Score:
5.9
Exploitability Score:
2.8
Attack Vector (AV):
Network
Attack Complexity (AC):
Low
Privileges Required (PR):
Low
User Interaction (UI):
None
Scope (S):
Unchanged
Confidentiality (C):
High
Integrity (I):
High
Availability (A):
High
CVSS v2.0 Severity and Metrics:
Base Score:
9.0 HIGH
Vector:
(AV:N/AC:L/Au:S/C:C/I:C/A:C)
(V2 legend)
Impact Subscore:
10.0
Exploitability Subscore:
8.0
Access Vector (AV):
Network
Access Complexity (AC):
Low
Authentication (AU):
Single
Confidentiality (C):
Complete
Integrity (I):
Complete
Availability (A):
Complete
Additional Information:
Allows unauthorized disclosure of information Allows unauthorized modification Allows disruption of service
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because
they may have information that would be of interest to you. No inferences should be drawn on account of other sites
being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose.
NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further,
NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about
this page to nvd@nist.gov.
Change History
9 change records found
- show changes
CVE Modified by MITRE -
11/3/2017 9:29:52 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
|
http://www.debian.org/security/2017/dsa-3852 [No Types Assigned] |
CVE Modified by MITRE -
9/18/2017 9:36:56 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
|
https://security.gentoo.org/glsa/201709-13 [No Types Assigned] |
CVE Modified by MITRE -
8/15/2017 9:29:21 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
|
https://www.exploit-db.com/exploits/41910/ [No Types Assigned] |
CVE Modified by MITRE -
7/10/2017 9:33:47 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
|
http://www.securitytracker.com/id/1038312 [No Types Assigned] |
CVE Modified by MITRE -
5/1/2017 9:59:03 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
|
http://www.securityfocus.com/bid/98067 [No Types Assigned] |
CVE Modified by MITRE -
4/27/2017 9:59:00 PM
| Action |
Type |
Old Value |
New Value |
| Changed |
Description |
Record truncated, showing 500 of 1068 characters.
View Entire Change Record
SquirrelMail 1.4.22 allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injec |
Record truncated, showing 500 of 1114 characters.
View Entire Change Record
SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it |
| Added |
Reference |
|
http://openwall.com/lists/oss-security/2017/04/27/1 [No Types Assigned] |
Initial Analysis -
4/24/2017 8:47:52 PM
| Action |
Type |
Old Value |
New Value |
| Added |
CPE Configuration |
|
OR
*cpe:2.3:a:squirrelmail:squirrelmail:1.4.22:*:*:*:*:*:*:* |
| Added |
CVSS V2 |
|
(AV:N/AC:L/Au:S/C:C/I:C/A:C) |
| Added |
CVSS V3 |
|
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Added |
CWE |
|
CWE-20 |
| Changed |
Reference Type |
http://openwall.com/lists/oss-security/2017/04/19/6 No Types Assigned |
http://openwall.com/lists/oss-security/2017/04/19/6 Mailing List, Third Party Advisory |
| Changed |
Reference Type |
https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html No Types Assigned |
https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html Exploit, Third Party Advisory |
CVE Modified by MITRE -
4/23/2017 9:59:00 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
|
https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html [No Types Assigned] |
CVE Modified by MITRE -
4/20/2017 9:59:01 PM
| Action |
Type |
Old Value |
New Value |
| Changed |
Description |
Record truncated, showing 500 of 1068 characters.
View Entire Change Record
Squirrelmail 1.4.22 allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injec |
Record truncated, showing 500 of 1068 characters.
View Entire Change Record
SquirrelMail 1.4.22 allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injec |
Quick Info
CVE Dictionary Entry:
CVE-2017-7692
NVD Published Date:
04/20/2017
NVD Last Modified:
11/03/2017
|