Vulnerabilities > CVE-2011-1929 - Improper Input Validation vulnerability in Dovecot

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

Summary

lib-mail/message-header-parser.c in Dovecot 1.2.x before 1.2.17 and 2.0.x before 2.0.13 does not properly handle '\0' characters in header names, which allows remote attackers to cause a denial of service (daemon crash or mailbox corruption) via a crafted e-mail message.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2011-7258.NASL
    description - dovecot updated to 2.0.13 - mdbox purge: Fixed wrong warning about corrupted extrefs. - script-login binary wasn
    last seen2020-06-01
    modified2020-06-02
    plugin id54911
    published2011-05-31
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/54911
    titleFedora 14 : dovecot-2.0.13-1.fc14 (2011-7258)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2011-7258.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(54911);
      script_version("1.7");
      script_cvs_date("Date: 2019/08/02 13:32:35");
    
      script_cve_id("CVE-2011-1929");
      script_xref(name:"FEDORA", value:"2011-7258");
    
      script_name(english:"Fedora 14 : dovecot-2.0.13-1.fc14 (2011-7258)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "  - dovecot updated to 2.0.13
    
        - mdbox purge: Fixed wrong warning about corrupted
          extrefs.
    
        - script-login binary wasn't actually dropping
          privileges to the user/group/chroot specified by its
          service settings.
    
      - Fixed potential crashes and other problems when parsing
        header names that contained NUL characters.
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=706286"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2011-May/060815.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?732df27a"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected dovecot package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:dovecot");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:14");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2011/05/19");
      script_set_attribute(attribute:"plugin_publication_date", value:"2011/05/31");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2011-2019 Tenable Network Security, Inc.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^14([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 14.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC14", reference:"dovecot-2.0.13-1.fc14")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "dovecot");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20110818_DOVECOT_ON_SL4_X.NASL
    descriptionDovecot is an IMAP server for Linux, UNIX, and similar operating systems, primarily written with security in mind. A denial of service flaw was found in the way Dovecot handled NULL characters in certain header names. A mail message with specially crafted headers could cause the Dovecot child process handling the target user
    last seen2020-06-01
    modified2020-06-02
    plugin id61116
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/61116
    titleScientific Linux Security Update : dovecot on SL4.x, SL5.x, SL6.x i386/x86_64
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_4_DOVECOT20-110525.NASL
    descriptiondovecot crash when parsing mail headers that contain NUL characters (CVE-2011-1929)
    last seen2020-06-01
    modified2020-06-02
    plugin id75819
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/75819
    titleopenSUSE Security Update : dovecot20 (dovecot20-4610)
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2011-1187.NASL
    descriptionFrom Red Hat Security Advisory 2011:1187 : Updated dovecot packages that fix one security issue are now available for Red Hat Enterprise Linux 4, 5, and 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Dovecot is an IMAP server for Linux, UNIX, and similar operating systems, primarily written with security in mind. A denial of service flaw was found in the way Dovecot handled NULL characters in certain header names. A mail message with specially crafted headers could cause the Dovecot child process handling the target user
    last seen2020-06-01
    modified2020-06-02
    plugin id68330
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/68330
    titleOracle Linux 4 / 5 / 6 : dovecot (ELSA-2011-1187)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_0B53F5F7CA8A11E0AEA300215C6A37BB.NASL
    descriptionTimo Sirainen reports : Fixed potential crashes and other problems when parsing header names that contained NUL characters.
    last seen2020-06-01
    modified2020-06-02
    plugin id55913
    published2011-08-20
    reporterThis script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/55913
    titleFreeBSD : dovecot -- denial of service vulnerability (0b53f5f7-ca8a-11e0-aea3-00215c6a37bb)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2011-101.NASL
    descriptionA vulnerability has been identified and fixed in dovecot : lib-mail/message-header-parser.c in Dovecot 1.2.x before 1.2.17 and 2.0.x before 2.0.13 does not properly handle
    last seen2020-06-01
    modified2020-06-02
    plugin id54839
    published2011-05-27
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/54839
    titleMandriva Linux Security Advisory : dovecot (MDVSA-2011:101)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2011-7612.NASL
    description - Fixed potential crashes and other problems when parsing header names that contained NUL characters. - IMAP: Fixed a memory leak with ESEARCH command handling - Quota warnings could have been executed at incorrect times with some configs. 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 id55055
    published2011-06-12
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/55055
    titleFedora 13 : dovecot-1.2.17-1.fc13 (2011-7612)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2011-1187.NASL
    descriptionUpdated dovecot packages that fix one security issue are now available for Red Hat Enterprise Linux 4, 5, and 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Dovecot is an IMAP server for Linux, UNIX, and similar operating systems, primarily written with security in mind. A denial of service flaw was found in the way Dovecot handled NULL characters in certain header names. A mail message with specially crafted headers could cause the Dovecot child process handling the target user
    last seen2020-06-01
    modified2020-06-02
    plugin id55924
    published2011-08-22
    reporterThis script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/55924
    titleCentOS 4 / 5 : dovecot (CESA-2011:1187)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_4_DOVECOT12-110525.NASL
    descriptiondovecot crash when parsing mail headers that contain NUL characters (CVE-2011-1929)
    last seen2020-06-01
    modified2020-06-02
    plugin id75818
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/75818
    titleopenSUSE Security Update : dovecot12 (dovecot12-4609)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2252.NASL
    descriptionIt was discovered that the message header parser in the Dovecot mail server parsed NUL characters incorrectly, which could lead to denial of service through malformed mail headers. The oldstable distribution (lenny) is not affected.
    last seen2020-03-17
    modified2011-06-10
    plugin id55040
    published2011-06-10
    reporterThis script is Copyright (C) 2011-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/55040
    titleDebian DSA-2252-1 : dovecot - programming error
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-1143-1.NASL
    descriptionIt was discovered that the message header parser in Dovecot did not properly handle
    last seen2020-06-01
    modified2020-06-02
    plugin id55106
    published2011-06-13
    reporterUbuntu Security Notice (C) 2011-2019 Canonical, Inc. / NASL script (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/55106
    titleUbuntu 10.04 LTS / 10.10 / 11.04 : dovecot vulnerability (USN-1143-1)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2011-1187.NASL
    descriptionUpdated dovecot packages that fix one security issue are now available for Red Hat Enterprise Linux 4, 5, and 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Dovecot is an IMAP server for Linux, UNIX, and similar operating systems, primarily written with security in mind. A denial of service flaw was found in the way Dovecot handled NULL characters in certain header names. A mail message with specially crafted headers could cause the Dovecot child process handling the target user
    last seen2020-06-01
    modified2020-06-02
    plugin id55917
    published2011-08-20
    reporterThis script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/55917
    titleRHEL 4 / 5 / 6 : dovecot (RHSA-2011:1187)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2011-7268.NASL
    description - dovecot updated to 2.0.13 - mdbox purge: Fixed wrong warning about corrupted extrefs. - script-login binary wasn
    last seen2020-06-01
    modified2020-06-02
    plugin id54912
    published2011-05-31
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/54912
    titleFedora 15 : dovecot-2.0.13-1.fc15 (2011-7268)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201110-04.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201110-04 (Dovecot: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Dovecot. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could exploit these vulnerabilities to cause the remote execution of arbitrary code, or a Denial of Service condition, to conduct directory traversal attacks, corrupt data, or disclose information. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id56446
    published2011-10-11
    reporterThis script is Copyright (C) 2011-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/56446
    titleGLSA-201110-04 : Dovecot: Multiple vulnerabilities
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_3_DOVECOT12-110525.NASL
    descriptiondovecot crash when parsing mail headers that contain NUL characters (CVE-2011-1929)
    last seen2020-06-01
    modified2020-06-02
    plugin id75472
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75472
    titleopenSUSE Security Update : dovecot12 (openSUSE-SU-2011:0540-1)

Redhat

advisories
bugzilla
id706286
titleCVE-2011-1929 dovecot: potential crash when parsing header names that contain NUL characters
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 4 is installed
      ovaloval:com.redhat.rhba:tst:20070304025
    • commentdovecot is earlier than 0:0.99.11-10.EL4
      ovaloval:com.redhat.rhsa:tst:20111187001
    • commentdovecot is signed with Red Hat master key
      ovaloval:com.redhat.rhsa:tst:20111187002
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • commentdovecot is earlier than 0:1.0.7-7.el5_7.1
      ovaloval:com.redhat.rhsa:tst:20111187004
    • commentdovecot is signed with Red Hat redhatrelease key
      ovaloval:com.redhat.rhsa:tst:20080297002
  • AND
    • commentRed Hat Enterprise Linux 6 is installed
      ovaloval:com.redhat.rhba:tst:20111656003
    • OR
      • AND
        • commentdovecot-pgsql is earlier than 1:2.0.9-2.el6_1.1
          ovaloval:com.redhat.rhsa:tst:20111187007
        • commentdovecot-pgsql is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20110600004
      • AND
        • commentdovecot-mysql is earlier than 1:2.0.9-2.el6_1.1
          ovaloval:com.redhat.rhsa:tst:20111187009
        • commentdovecot-mysql is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20110600002
      • AND
        • commentdovecot is earlier than 1:2.0.9-2.el6_1.1
          ovaloval:com.redhat.rhsa:tst:20111187011
        • commentdovecot is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20110600008
      • AND
        • commentdovecot-pigeonhole is earlier than 1:2.0.9-2.el6_1.1
          ovaloval:com.redhat.rhsa:tst:20111187013
        • commentdovecot-pigeonhole is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20110600006
      • AND
        • commentdovecot-devel is earlier than 1:2.0.9-2.el6_1.1
          ovaloval:com.redhat.rhsa:tst:20111187015
        • commentdovecot-devel is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20110600010
rhsa
idRHSA-2011:1187
released2011-08-18
severityModerate
titleRHSA-2011:1187: dovecot security update (Moderate)
rpms
  • dovecot-0:0.99.11-10.EL4
  • dovecot-0:1.0.7-7.el5_7.1
  • dovecot-1:2.0.9-2.el6_1.1
  • dovecot-debuginfo-0:0.99.11-10.EL4
  • dovecot-debuginfo-0:1.0.7-7.el5_7.1
  • dovecot-debuginfo-1:2.0.9-2.el6_1.1
  • dovecot-devel-1:2.0.9-2.el6_1.1
  • dovecot-mysql-1:2.0.9-2.el6_1.1
  • dovecot-pgsql-1:2.0.9-2.el6_1.1
  • dovecot-pigeonhole-1:2.0.9-2.el6_1.1

References