Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
NVD Vulnerability Details :
CVE-2017-7692
Deferred
More InfoOfficial Page
Source-cve@mitre.org
View Known Exploited Vulnerability (KEV) details
Published At-20 Apr, 2017 | 14:59
Updated At-20 Apr, 2025 | 01:37

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.08.8HIGH
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary2.09.0HIGH
AV:N/AC:L/Au:S/C:C/I:C/A:C
Type: Primary
Version: 3.0
Base score: 8.8
Base severity: HIGH
Vector:
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Type: Primary
Version: 2.0
Base score: 9.0
Base severity: HIGH
Vector:
AV:N/AC:L/Au:S/C:C/I:C/A:C
CPE Matches

SquirrelMail
squirrelmail
>>squirrelmail>>1.4.22
cpe:2.3:a:squirrelmail:squirrelmail:1.4.22:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-20Primarynvd@nist.gov
CWE ID: CWE-20
Type: Primary
Source: nvd@nist.gov
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
http://openwall.com/lists/oss-security/2017/04/19/6cve@mitre.org
Mailing List
Third Party Advisory
http://openwall.com/lists/oss-security/2017/04/27/1cve@mitre.org
N/A
http://www.debian.org/security/2017/dsa-3852cve@mitre.org
N/A
http://www.securityfocus.com/bid/98067cve@mitre.org
N/A
http://www.securitytracker.com/id/1038312cve@mitre.org
N/A
https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.htmlcve@mitre.org
Exploit
Third Party Advisory
https://security.gentoo.org/glsa/201709-13cve@mitre.org
N/A
https://www.exploit-db.com/exploits/41910/cve@mitre.org
N/A
http://openwall.com/lists/oss-security/2017/04/19/6af854a3a-2127-422b-91ae-364da2661108
Mailing List
Third Party Advisory
http://openwall.com/lists/oss-security/2017/04/27/1af854a3a-2127-422b-91ae-364da2661108
N/A
http://www.debian.org/security/2017/dsa-3852af854a3a-2127-422b-91ae-364da2661108
N/A
http://www.securityfocus.com/bid/98067af854a3a-2127-422b-91ae-364da2661108
N/A
http://www.securitytracker.com/id/1038312af854a3a-2127-422b-91ae-364da2661108
N/A
https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.htmlaf854a3a-2127-422b-91ae-364da2661108
Exploit
Third Party Advisory
https://security.gentoo.org/glsa/201709-13af854a3a-2127-422b-91ae-364da2661108
N/A
https://www.exploit-db.com/exploits/41910/af854a3a-2127-422b-91ae-364da2661108
N/A
Hyperlink: http://openwall.com/lists/oss-security/2017/04/19/6
Source: cve@mitre.org
Resource:
Mailing List
Third Party Advisory
Hyperlink: http://openwall.com/lists/oss-security/2017/04/27/1
Source: cve@mitre.org
Resource: N/A
Hyperlink: http://www.debian.org/security/2017/dsa-3852
Source: cve@mitre.org
Resource: N/A
Hyperlink: http://www.securityfocus.com/bid/98067
Source: cve@mitre.org
Resource: N/A
Hyperlink: http://www.securitytracker.com/id/1038312
Source: cve@mitre.org
Resource: N/A
Hyperlink: https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html
Source: cve@mitre.org
Resource:
Exploit
Third Party Advisory
Hyperlink: https://security.gentoo.org/glsa/201709-13
Source: cve@mitre.org
Resource: N/A
Hyperlink: https://www.exploit-db.com/exploits/41910/
Source: cve@mitre.org
Resource: N/A
Hyperlink: http://openwall.com/lists/oss-security/2017/04/19/6
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Mailing List
Third Party Advisory
Hyperlink: http://openwall.com/lists/oss-security/2017/04/27/1
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: http://www.debian.org/security/2017/dsa-3852
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: http://www.securityfocus.com/bid/98067
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: http://www.securitytracker.com/id/1038312
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Exploit
Third Party Advisory
Hyperlink: https://security.gentoo.org/glsa/201709-13
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://www.exploit-db.com/exploits/41910/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Change History
0Changes found

Details not found