Secunia Logo  
 
chetcpasswd Multiple Vulnerabilities
Secunia Advisory: SA22967
Release Date: 2006-11-21
Last Update: 2006-12-22
Popularity: 6,503 views

Critical:
Highly critical
Impact: Security Bypass
Exposure of system information
System access
Where: From remote
Solution Status: Partial Fix

Software:chetcpasswd 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-6679
CVE-2006-6681
CVE-2006-6682
CVE-2006-6684
CVE-2006-6685


Description:
Some vulnerabilities have been discovered in chetcpasswd, which can be exploited by malicious people to bypass security restrictions, identify valid user accounts and potentially compromise vulnerable systems.

1) Input passed in the "X-Forwarded-For" HTTP header is trusted from all clients. This can be exploited to bypass IP address checks by connecting to chetcpasswd and passing arbitrary values in the header.

2) Different error messages are returned depending on whether an unsuccessful password change attempt is performed with a valid or invalid username.

3) Boundary errors exist within the "main()" function in chetcpasswd.c. This can be exploited to cause a heap-based buffer overflow by passing long "X-Forwarded-For" HTTP headers or running the program locally with long values in the "REMOTE_ADDR" environment variable.

Successful exploitation potentially allows for execution of arbitrary code as the root user. It doesn't require passing the IP address check, as the buffer overflow takes place before it.

It has also been reported that the product does not introduce delays after failed password change attempts, making dictionary attacks easier to perform.

The vulnerabilities are confirmed in version 2.3.3. Other versions may also be affected.

Solution:
Update to version 2.4, which fixes vulnerability #1 and #3.

Restrict access to chetcpasswd (e.g. with ".htaccess").

Provided and/or discovered by:
1+2) Bas Zoetekouw
3) João Eriberto Mota Filho

Changelog:
2006-11-22: Added information about additional vulnerability. Updated "Solution" section.
2006-12-22: Added CVE reference.

Original Advisory:
1+2) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=394454

Other References:
3) http://sarg.sourceforge.net/chetcpasswd.ChangeLog.txt


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. Mambo "GLOBALS['mosConfig_absolute_path']" File Inclusion // 27 views
2. Drupal Project Module File Upload and Cross-Site Scripting // 27 views
3. Internet Explorer Data Binding Memory Corruption Vulnerability // 23 views
4. Cisco Global Site Selector DNS Request Denial of Service // 22 views
5. Drupal Project Issue Tracking Module Multiple Vulnerabilities // 22 views
6. ArticleBeach Script "page" File Inclusion Vulnerability // 21 views
7. SmbFTPD Long Command Processing Vulnerability // 21 views
8. Lasso OpenSSL "DSA_verify()" Spoofing Vulnerability // 19 views
9. NTP OpenSSL "EVP_VerifyFinal()" Spoofing Vulnerability // 19 views
10. PHP-Fusion Members CV Module "sortby" SQL Injection Vulnerability // 17 views