Vulnerabilities > CVE-2007-6714 - Improper Authentication vulnerability in Dbmail 2.2.6/2.2.7/2.2.8

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN

Summary

DBMail before 2.2.9, when using authldap with an LDAP server that supports anonymous login such as Active Directory, allows remote attackers to bypass authentication via an empty password, which causes the LDAP bind to indicate success based on anonymous authentication.

Vulnerable Configurations

Part Description Count
Application
Dbmail
9

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Authentication Abuse
    An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Register Man in the Middle
    This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
  • Man in the Middle Attack
    This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-3371.NASL
    descriptionFix possible authentication bypass in authldap authentication module when dbmail is used with LDAP servers allowing anonymous logins - CVE-2007-6714 (#443019). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id32099
    published2008-05-01
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/32099
    titleFedora 7 : dbmail-2.2.9-1.fc7 (2008-3371)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-3333.NASL
    descriptionFix possible authentication bypass in authldap authentication module when dbmail is used with LDAP servers allowing anonymous logins - CVE-2007-6714 (#443019). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id32093
    published2008-05-01
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/32093
    titleFedora 8 : dbmail-2.2.9-1.fc8 (2008-3333)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-4245.NASL
    description - Thu Apr 24 2008 Bernard Johnson <bjohnson at symetrix.com> - 2.2.9-1 - v 2.2.9 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id32410
    published2008-05-22
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/32410
    titleFedora 9 : dbmail-2.2.9-1.fc9 (2008-4245)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200804-24.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200804-24 (DBmail: Data disclosure) A vulnerability in DBMail
    last seen2020-06-01
    modified2020-06-02
    plugin id32017
    published2008-04-22
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/32017
    titleGLSA-200804-24 : DBmail: Data disclosure

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 28849 CVE(CAN) ID: CVE-2007-6714 Dbmail是一个程序集,允许从数据库检索和存储邮件,可使用MySQL、PostgreSQL和SQLite作为数据库后端。 Dbmail的认证过程存在安全漏洞,如果启用了authldap模块且LDAP服务器允许匿名登录,则任何用户都可以使用空口令字符串登录到任意帐号。 h000 ~ # telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK dbmail imap (protocol version 4r1) server 2.2 ready to run a login [EMAIL PROTECTED] &quot;&quot; a OK LOGIN completed a logout * BYE dbmail imap server kisses you goodbye a OK completed Connection closed by foreign host. 漏洞的起因是ldap_bind_s函数: int ldap_bind_s(LDAP *ld, const char *who, const char *cred, int method); 如果cred参数为&quot;&quot;的话,ldap库就会试图认证为匿名,bind返回成功,因此dbmail就允许用户进入到邮箱。 modules/authldap.c:1263 if (ldap_err) { TRACE(TRACE_ERROR, &quot;ldap_bind_s failed: %s&quot;, ldap_err2string(ldap_err)); *user_idnr = 0; } else { db_user_log_login(*user_idnr); } NFG Dbmail &lt; 2.2.9 Gentoo ------ Gentoo已经为此发布了一个安全公告(GLSA-200804-24)以及相应补丁: GLSA-200804-24:DBmail: Data disclosure 链接:<a href=http://security.gentoo.org/glsa/glsa-200804-24.xml target=_blank>http://security.gentoo.org/glsa/glsa-200804-24.xml</a> 所有DBMail用户都应升级到最新版本: # emerge --sync # emerge --ask --oneshot --verbose &quot;&gt;=3Dnet-mail/dbmail-2.2.9&quot; NFG --- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.dbmail.org/index.php?page=news&amp;id=44 target=_blank>http://www.dbmail.org/index.php?page=news&amp;id=44</a>
idSSV:3203
last seen2017-11-19
modified2008-04-23
published2008-04-23
reporterRoot
titleDBMail空LDAP口令绕过认证漏洞