Vulnerabilities · 2018 · Php
CVE-2018-19518
Php vulnerability
University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of the imap_rimap function in c-client/imap4r1.c and the tcp_aopen function in osdep/unix/tcp_unix.c) without preventing argument injection, which might allow remote attackers to execute arbitrary OS commands if the IMAP server name is untrusted input (e.g., entered by a user of a web application) and if rsh has been replaced by a program with different argument semantics. For example, if rsh is a link to ssh (as seen on Debian and Ubuntu systems), then the attack can use an IMAP server name containing a "-oProxyCommand" argument.
Affected products
Php, Debian Linux, Uw-imap, Ubuntu Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- bugs.php.net/bug.php?id=76428 · Exploit
- bugs.php.net/bug.php?id=77153 · Exploit
- bugs.php.net/bug.php?id=77160 · Vendor Advisory
- antichat.com/threads/463395/#post-4254681 · Exploit
- bugs.debian.org/913775 · Third Party Advisory
- bugs.debian.org/913835 · Third Party Advisory
- bugs.debian.org/913836 · Third Party Advisory
- github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php · Exploit
- nvd.nist.gov/vuln/detail/CVE-2018-19518
- cve.org/CVERecord?id=CVE-2018-19518
More vulnerabilities in Php products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.