AtMail Open Multiple Vulnerabilities


Description   Multiple vulnerabilities have been discovered in AtMail Open, which can be exploited by malicious users to disclose sensitive information, manipulate certain data, and compromise a vulnerable system and by malicious people to conduct cross-site scripting attacks.
1) Input passed to the "func" parameter in ldap.php and search.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
2) Input passed via the "file" parameter to mime.php is not properly verified before being used to read files. This can be exploited to disclose the contents of arbitrary files from local resources via directory traversal sequences.
3) Input passed via the "unique" parameter to compose.php (when "func" is set to "renameattach') is not properly verified in libs/Atmail/SendMsg.php before being used to copy files. This can be exploited to overwrite arbitrary files via directory traversal sequences and URL-encoded NULL bytes.
4) Input passed via the "Attachment" parameter to compose.php (when "func" is set to "renameattach') is not properly verified in libs/Atmail/SendMsg.php before being used to copy files. This can be exploited to disclose the contents of arbitrary files from local resources via directory traversal sequences.
5) An error in the "add_attachment()" function in the libs/Atmail/SendMsg.php script does not validate the extension of an uploaded file, which can be exploited to e.g. upload and execute arbitrary PHP files.
The vulnerabilities are confirmed in version 1.04. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
AtMail Open 1.x
     
Solution   Edit the source code to ensure that input is properly sanitised and verified. Restrict access to the "tmp" folder (e.g. via .htaccess).
     
CVE   CVE-2012-1920
CVE-2012-1919
CVE-2012-1918
CVE-2012-1917
CVE-2012-1916
CVE-2011-4540
     
References   Dognaedis:
https://www.dognaedis.com/vulns/DGS-SEC-1.html
US-CERT:
http://www.kb.cert.org/vuls/id/743555
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - GET : suspicious 'iframe' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'meta' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious tag with event found in URL
3.2.0
XSS - Prevention - GET : suspicious 'applet' tag found in URL
3.2.0
XSS - Phishing : suspicious 'div' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' attribute found in URL
3.2.0
XSS - Prevention - GET : suspicious 'img' tag found in URL
3.2.0
XSS - Phishing : suspicious 'a' tag found in URL
3.2.0
XSS - Prevention - GET : cookie access attempt using script language found in URL
3.2.0
XSS - Prevention - GET : suspicious 'embed' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'object' tag found in URL
3.2.0
XSS - Phishing : suspicious 'form' tag found in URL
3.2.0
XSS - Prevention - GET : javascript code found in URL
3.2.0
XSS - Prevention - GET : evasion attempt using tag characters encoding in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' tag found in URL
3.2.0
XSS - Phishing : suspicious 'link' tag found in URL
3.2.0
XSS - Prevention - GET : 'script' tag found in URL
3.2.0
XSS - Prevention - GET : 'location' javascript object found in URL
3.2.0
XSS - Prevention - GET : suspicious 'div' tag found in URL
3.2.0
     


 
 
 
 
 Risk level 
High 

 Vulnerability First Public Report Date 
2011-12-01 

 Target Type 
Server 

 Possible exploit 
Remote