Secunia Logo
 
SquirrelMail G/PGP Encryption Plugin Multiple Vulnerabilities
Secunia Advisory: SA26035
Release Date: 2007-07-12
Last Update: 2007-12-11
Popularity: 5,337 views

Critical:
Highly critical
Impact: Cross Site Scripting
Manipulation of data
Exposure of system information
Exposure of sensitive information
System access
Where: From remote
Solution Status: Partial Fix

Software:SquirrelMail G/PGP Encryption Plugin 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-1924
CVE-2006-4169
CVE-2007-3778


Description:
Some vulnerabilities have been reported in the SquirrelMail G/PGP Encryption Plugin, which can be exploited by malicious users to delete and overwrite certain files, by malicious people to conduct script insertion attacks, and by malicious users and malicious people to disclose sensitive information or to compromise a vulnerable system.

1) An input validation error exists in the "deleteKey()" function, which can be exploited by to inject and execute arbitrary shell commands via the "fpr" parameter.

Successful exploitation of this vulnerability requires valid user credentials.

2) An input validation error exists in the "gpg_check_sign_pgp_mime()" function, which can be exploited to inject and execute arbitrary shell commands via the "messageSignedText" variable when a users opens a specially crafted email.

3) An input validation error exists in the "gpg_recv_key()" function in gpg_key_functions.php, which can be exploited to inject and execute arbitrary shell commands via the "keyserver" parameter.

Successful exploitation of this vulnerability requires valid user credentials.

4) Input passed to the "help" parameter in gpg_help.php and gpg_help_base.php is not properly verified before being used to include files. This can be exploited to include arbitrary files from local resources.

5) Certain input is not properly verified before being used, which can be exploited by malicious users to delete or overwrite certain files.

6) The function "gpg_import_link()" in gpg_hook_functions.php does not properly sanitise certain input before returning it 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 if a malicious email is viewed.

The vulnerabilities #1-4 are reported in version 2.0. Vulnerabilities #1 and #3 are also reported in version 2.1. Vulnerabilities #5 and #6 are reported in version 2.0, 2.0.1, and 2.1. Other versions may also be affected.

Solution:
Update to version 2.1 and grant only trusted users web access to the application. Edit the source code to ensure that input is properly sanitised.

Provided and/or discovered by:
1-4) An anonymous person, reported via iDefense.
5, 6) Tomas Kuliavas

Changelog:
2007-07-19: Added CVE reference.
2007-12-11: Added vulnerabilities #5 and #6 provided by Tomas Kuliavas. Updated "Solution" section.

Original Advisory:
1) http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=329
2) http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=330
3) http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=331
4) http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=555

5, 6) http://www.topolis.lt/bugtraq/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Sun Java JDK / JRE Multiple Vulnerabilities // 42 views
2. Adobe Flash Player Multiple Security Issues and Vulnerabilities // 33 views
3. Microsoft XML Core Services Multiple Vulnerabilities // 33 views
4. Zeroboard Multiple Vulnerabilities // 33 views
5. Adobe Acrobat/Reader Multiple Vulnerabilities // 30 views
6. Zeroboard Two Vulnerabilities // 27 views
7. Apple iPhone / iPod touch Multiple Vulnerabilities // 23 views
8. BitDefender Antivirus PDF Processing Memory Corruption Vulnerability // 22 views
9. Mozilla Firefox 3 Multiple Vulnerabilities // 21 views
10. vBulletin Visitor Messages Script Insertion Vulnerability // 21 views