The Address Book Multiple Vulnerabilities
Secunia Advisory: SA21694
Release Date: 2007-01-03
Popularity: 5,534 views

Critical:
Highly critical
Impact: Hijacking
Security Bypass
Cross Site Scripting
Manipulation of data
Exposure of sensitive information
System access
Where: From remote
Solution Status: Unpatched

Software:The Address Book 1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-4575
CVE-2006-4576
CVE-2006-4577
CVE-2006-4578
CVE-2006-4579
CVE-2006-4580
CVE-2006-4581
CVE-2006-4582


Description:
Secunia Research has discovered some vulnerabilities and a security issue in The Address Book, which can be exploited by malicious people to bypass certain security restrictions, conduct cross-site scripting, cross-site request forgery, script insertion, and SQL injection attacks, disclose sensitive information, and compromise a vulnerable system.

1) Input passed to the "lastname" and "firstname" parameters when adding a new entry, the "passwordOld" and "passwordNew" parameters when changing the password in users.php, the "id" parameter when confirming a user in users.php, the "language" and "defaultLetter" parameters when changing personal options in users.php, the "goTo" and "search" parameters in search.php during searches, the "groupAddName" parameter when adding a new group in save.php, and the "newuserPass", "newuserType", and "newuserEmail" parameters when an administrator adds a user in users.php isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that "magic_quotes_gpc" is disabled (except for the "id" parameter).

2) An input validation error exists in the picture upload handling due to missing verification of the content of uploaded images. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site when a specially crafted HTML document with the ".gif" or ".jpg" file extension is viewed directly in the Microsoft Internet Explorer browser.

3) Input passed to the "email" and "websites" parameters when adding a new entry, and the "groupAddName" parameter when adding a new group in save.php isn't properly sanitised before being used. This can be exploited to inject arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site when the malicious user data is viewed.

Example:
Adding new entry: " onmouseover=[code] "

4) The problem is that user credentials are included in the exported MySQL dump file generated by export.php which is accessible by normal users. This can be exploited to disclose usernames and encrypted passwords (MD5 sum).

5) Input passed to the "language" parameter when changing personal options in users.php isn't properly verified, before it is used to include files. This can be exploited to include arbitrary files from local resources.

This can further be exploited to include arbitrary PHP code injected into uploaded image files.

Example:
../mugshots/[file].gif%00

6) Input passed to the "errorMsg" parameter in index.php, and the "goTo" and "search" parameters in search.php isn't 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.

Successful exploitation requires that "register_globals" is enabled (except for the "goTo" parameter).

7) The problem is that it is possible to register a new user account in register.php even when "Allow User Self-Registration" has been disabled by setting the "mode" parameter to "confirm".

8) An error exists in the picture upload handling due to the application only validating the "Content-Type" header and not the file extension. This can be exploited to upload a malicious PHP script inside the web root.

9) An error exists due to the application allowing users to perform certain actions via HTTP requests without performing any validity checks to verify the user's request.

Example:
http://[host]/users.php?action=deleteuser&id=[id]

The vulnerabilities and the security issue are confirmed in version 1.04e. Other versions may also be affected.

Solution:
Use another product.

Provided and/or discovered by:
Secunia Research

Original Advisory:
Secunia Research:
http://secunia.com/secunia_research/2006-76/


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

Today
New advisories: 9
New vulnerabilities: 12
Updated advisories: 16

Moderately // 264 views
rPath update for libtiff
Highly // 257 views
Gentoo update for realplayer
Less // 255 views
Gentoo update for mysql
Moderately // 253 views
Gentoo update for dnsmasq
Highly // 266 views
Gentoo update for yelp

4th Sep, 2008
New advisories: 19
New vulnerabilities: 41
Updated advisories: 35


Solutions | More...  


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. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 98 views
2. HP OpenView Select Identity Connectors Information Disclosure // 65 views
3. Drupal Content Construction Kit Script Insertion Vulnerabilities // 64 views
4. Cisco ASA and PIX Security Appliances Multiple Vulnerabilities // 63 views
5. Gentoo update for yelp // 44 views
6. rPath update for libtiff // 43 views
7. CS-Cart "cs_cookies" SQL Injection Vulnerability // 43 views
8. Cisco Secure ACS EAP Packet Denial of Service // 43 views
9. Gentoo update for dnsmasq // 39 views
10. Gentoo update for mysql // 39 views