![]() ![]() 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. 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. The problem is in -f$envelopefrom within the sendmail command line. 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 the Deliver_ with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. Please verify that the current setting of session.savepath is correct (/tmp) in /usr/local/cpanel/base/3rdparty/squirrelmail/src/redirect. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. I can log in by going to Cool.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. htaccess file in the /var/file: Īnd it just works. In order to allow access as I need to bung a. We need to change the settings in Folder Defaults to make it compatible with IMAPdir and Outlook Express: Trash Folder The defaults are generally OK, but there’s a couple of things that need to be changed: # config/ # chown -R www-data.www-data data Configuring SquirrelMail # cp -a /usr/local/src/squirrelmail-1.4.2/* webmail/ The installation instructions aren’t great. Grab the download from here, and then follow the instructions in the INSTALL file. Optionally, the secure connection can be turned off again after successful login. Once Apache and PHP are installed correctly, we can install SquirrelMail. This plugin automatically enables a secure HTTPS/SSL-encrypted connection for the SquirrelMail login page if it hasn't already been requested by the referring hyperlink or bookmark. # LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so # And for PHP 4.x, use: **LoadModule php4_module /usr/lib/apache/1.3/libphp4.so** You’ll need to go and tweak the /etc/apache/nf file: # LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so Note that, by default, the Debian packages for php4 on woody don’t correctly enable it. Cross-site request forgery (CSRF) vulnerability in compose.php in SquirrelMail 1.4.0 through 1.4.9a allows remote attackers to send e-mails from arbitrary users via certain data in the SRC attribute of an IMG element. SquirrelMail also has a bunch of other requirements: # apt-get install apache php4 php4-pear The first thing that I need to do is install Apache (since this is my test box and it’s not been installed yet). I’m going to take a look at SquirrelMail. About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4). For that reason I use a dedicated webmail vhost on my servers by creating a nwe websiite like and install a webmail app in that site and let all customers access their email trough that vhost. ![]() One requirement I listed earlier is webmail, so that I can access my email from anywhere. It is always a problem to access a centrally installed web app on a secure webserver that uses different priveliges for the websites. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |