|
DenyHosts Denial of Service and Weakness
|
|
Secunia Advisory:
|
SA23236
|
|
|
Release Date:
|
2006-12-06
|
|
Last Update:
|
2007-11-01
|
|
Popularity:
|
6,313 views
|
|
|
Critical:
|
 Moderately critical
|
|
Impact:
|
Security Bypass DoS
|
|
Where:
|
From remote
|
|
Solution Status:
|
Unpatched
|
|
| Software: | DenyHosts 2.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| CVE reference: | CVE-2006-6301 CVE-2007-4323 CVE-2007-5715
|
|
Description: Tavis Ormandy and Jonathan Underwood have discovered a vulnerability and a weakness in DenyHosts, which can be exploited by malicious people to bypass certain security restrictions or cause a DoS (Denial of Service).
1) An error exists in the parsing of log files before adding an entry in /etc/hosts.deny. This can be exploited to add arbitrary IP addresses to /etc/hosts.deny resulting in a DoS for that IP.
The vulnerability is confirmed in version 2.5 and 2.6. Other versions may also be affected.
2) A weakness exists in the parsing log files containing login attempts blocked by the "AllowUsers" OpenSSH directive. This can be exploited to bypass the logging capability of DenyHosts by trying to login using a user not specifically permited by "AllowUsers".
The weakness is confirmed in version 2.6. Other versions may also be affected.
Solution: Edit the regular expressions to ensure that log files are parsed properly.
Use another product.
Provided and/or discovered by: 1) Tavis Ormandy
2) Jonathan Underwood
Changelog: 2006-12-08: Added CVE reference.
2007-01-04: Updated "Solution" section.
2007-06-07: Updated "Description" and "Solution" section and "Solution Status" based on information provided by Daniel Cid. Added link to "Original Advisory" section.
2007-08-15: Added CVE reference.
2007-11-01: Added weakness #2 to the advisory.
Original Advisory: 1) http://bugs.gentoo.org/show_bug.cgi?id=157163
http://www.ossec.net/en/attacking-loganalysis.html
2) https://bugzilla.redhat.com/show_bug.cgi?id=237449
|
|
|
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.
|