Dognædis Ref.: DGS-SEC-3
CVE Ref: CVE-2011-4542
Release Date: 2011/11/22
Discover Credits: CodeV - Code Analyzer
Bulletin Author(s): BTeixeira
Type: Remote Code Injection
Level: Critical (Low/High/Critical)
CVSS: 9 (AV:N/AC:L/Au:N/C:C/I:P/A:P)
Vulnerable Application: Hastymail (ver. 2.1.1)
Hastymail2 is a full featured IMAP/SMTP client written in PHP. It's goal is to create a fast, secure, compliant web mail client that has great usability.
The referred vulnerability could be exploited through a RCI (Remote Code Injection) attack.
By submitting tampered arguments, it would be possible to lead the web server to execute arbitrary PHP code.
This would allow the attacker to access confidential information stored in any file on the server, or even write into (or delete) those files.
In the worst case, the attacker could take complete control of the web server.
By using this exploit, might be possible to completely compromise the Web Server, only constrained by the Apache User permissions.
Aiming a correct resolution of the identified vulnerability, the data obtained through the $_POST['rs'] and $_POST['rsargs'] input arguments should be properly validated before any kind of usage.
Users are recommended to upgrade to the newer version (v2.1.1-RC2), which is available in the application website.