Vulnerabilities > CVE-2008-3889 - Improper Input Validation vulnerability in Postfix
Attack vector
LOCAL Attack complexity
LOW Privileges required
NONE Confidentiality impact
NONE Integrity impact
NONE Availability impact
PARTIAL Summary
Postfix 2.4 before 2.4.9, 2.5 before 2.5.5, and 2.6 before 2.6-20080902, when used with the Linux 2.6 kernel, leaks epoll file descriptors during execution of "non-Postfix" commands, which allows local users to cause a denial of service (application slowdown or exit) via a crafted command, as demonstrated by a command in a .forward file.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 1 | |
Application | Postfix
| 14 |
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.
Exploit-Db
id | EDB-ID:6472 |
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2008-8593.NASL description New upstream patch level version 2.5.5, including multiple security fixes detailed in upstream announcements: http://www.postfix.org/announcements/20080814.html http://www.postfix.org/announcements/20080902.html 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 seen 2020-06-01 modified 2020-06-02 plugin id 34376 published 2008-10-10 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34376 title Fedora 9 : postfix-2.5.5-1.fc9 (2008-8593) 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 2008-8593. # include("compat.inc"); if (description) { script_id(34376); script_version ("1.19"); script_cvs_date("Date: 2019/08/02 13:32:28"); script_cve_id("CVE-2008-2936", "CVE-2008-2937", "CVE-2008-3889"); script_bugtraq_id(30691, 30977); script_xref(name:"FEDORA", value:"2008-8593"); script_name(english:"Fedora 9 : postfix-2.5.5-1.fc9 (2008-8593)"); 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: "New upstream patch level version 2.5.5, including multiple security fixes detailed in upstream announcements: http://www.postfix.org/announcements/20080814.html http://www.postfix.org/announcements/20080902.html 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:"http://www.postfix.org/announcements/20080814.html" ); script_set_attribute( attribute:"see_also", value:"http://www.postfix.org/announcements/20080902.html" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=456314" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=456347" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=460906" ); # https://lists.fedoraproject.org/pipermail/package-announce/2008-October/015227.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?c386e55d" ); script_set_attribute( attribute:"solution", value:"Update the affected postfix package." ); script_set_cvss_base_vector("CVSS2#AV:L/AC:H/Au:N/C:C/I:C/A:C"); script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploited_by_malware", value:"true"); script_cwe_id(20, 200, 264); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:postfix"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:9"); script_set_attribute(attribute:"vuln_publication_date", value:"2008/08/18"); script_set_attribute(attribute:"patch_publication_date", value:"2008/10/09"); script_set_attribute(attribute:"plugin_publication_date", value:"2008/10/10"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); 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:"^9([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 9.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:"FC9", reference:"postfix-2.5.5-1.fc9")) 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, "postfix"); }
NASL family SuSE Local Security Checks NASL id SUSE_POSTFIX-5603.NASL description When exectuting external programs postfix didn last seen 2020-06-01 modified 2020-06-02 plugin id 34240 published 2008-09-18 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34240 title openSUSE 10 Security Update : postfix (postfix-5603) NASL family SuSE Local Security Checks NASL id SUSE_11_0_POSTFIX-080912.NASL description When exectuting external programs postfix didn last seen 2020-06-01 modified 2020-06-02 plugin id 40112 published 2009-07-21 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/40112 title openSUSE Security Update : postfix (postfix-194) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200809-09.NASL description The remote host is affected by the vulnerability described in GLSA-200809-09 (Postfix: Denial of Service) It has been discovered than Postfix leaks an epoll file descriptor when executing external commands, e.g. user-controlled $HOME/.forward or $HOME/.procmailrc files. NOTE: This vulnerability only concerns Postfix instances running on Linux 2.6 kernels. Impact : A local attacker could exploit this vulnerability to reduce the performance of Postfix, and possibly trigger an assertion, resulting in a Denial of Service. Workaround : Allow only trusted users to control delivery to non-Postfix commands. last seen 2020-06-01 modified 2020-06-02 plugin id 34248 published 2008-09-22 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34248 title GLSA-200809-09 : Postfix: Denial of Service NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-642-1.NASL description Wietse Venema discovered that Postfix leaked internal file descriptors when executing non-Postfix commands. A local attacker could exploit this to cause Postfix to run out of descriptors, leading to a denial of service. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 36904 published 2009-04-23 reporter Ubuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/36904 title Ubuntu 7.10 / 8.04 LTS : postfix vulnerability (USN-642-1) NASL family SMTP problems NASL id POSTFIX_EPOLL_LOCAL_DOS.NASL description According to its banner, the version of Postfix running on the remote host leaks last seen 2020-06-01 modified 2020-06-02 plugin id 34347 published 2008-10-06 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34347 title Postfix epoll File Descriptor Leak Local DoS NASL family Fedora Local Security Checks NASL id FEDORA_2008-8595.NASL description New upstream patch level version 2.5.5, including multiple security fixes detailed in upstream announcements: http://www.postfix.org/announcements/20080814.html http://www.postfix.org/announcements/20080902.html 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 seen 2020-06-01 modified 2020-06-02 plugin id 34377 published 2008-10-10 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34377 title Fedora 8 : postfix-2.5.5-1.fc8 (2008-8595) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2008-190.NASL description A vulnerability in Postfix 2.4 and later was discovered, when running on Linux kernel 2.6, where a local user could cause a denial of service due to Postfix leaking the epoll file descriptor when executing non-Postfix commands (CVE-2008-3889). The updated packages have been patched to correct this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 36736 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/36736 title Mandriva Linux Security Advisory : postfix (MDVSA-2008:190)
Seebug
bulletinFamily exploit description No description provided by source. id SSV:9519 last seen 2017-11-19 modified 2008-09-17 published 2008-09-17 reporter Root source https://www.seebug.org/vuldb/ssvid-9519 title Postfix < 2.4.9, 2.5.5, 2.6-20080902 (.forward) Local DoS Exploit bulletinFamily exploit description No description provided by source. id SSV:17332 last seen 2017-11-19 modified 2008-09-16 published 2008-09-16 reporter Root source https://www.seebug.org/vuldb/ssvid-17332 title Postfix < 2.4.9 2.5.5 2.6-20080902 (.forward) Local DoS Exploit bulletinFamily exploit description No description provided by source. id SSV:65714 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-65714 title Postfix < 2.4.9, 2.5.5, 2.6-20080902 - (.forward) Local DoS Exploit
Statements
contributor | Joshua Bressers |
lastmodified | 2017-09-28 |
organization | Red Hat |
statement | Not vulnerable. This issue did not affect the versions Postfix as shipped with Red Hat Enterprise Linux 3, 4, or 5. |
References
- http://lists.opensuse.org/opensuse-security-announce/2008-09/msg00004.html
- http://secunia.com/advisories/31716
- http://secunia.com/advisories/31800
- http://secunia.com/advisories/31982
- http://secunia.com/advisories/31986
- http://secunia.com/advisories/32231
- http://security.gentoo.org/glsa/glsa-200809-09.xml
- http://securityreason.com/securityalert/4239
- http://securitytracker.com/id?1020800
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0311
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:190
- http://www.postfix.org/announcements/20080902.html
- http://www.securityfocus.com/archive/1/495894/100/0/threaded
- http://www.securityfocus.com/archive/1/496420/100/0/threaded
- http://www.securityfocus.com/archive/1/498037/100/0/threaded
- http://www.securityfocus.com/bid/30977
- http://www.ubuntu.com/usn/usn-642-1
- http://www.wekk.net/research/CVE-2008-3889/
- https://exchange.xforce.ibmcloud.com/vulnerabilities/44865
- https://www.exploit-db.com/exploits/6472
- https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00271.html
- https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00287.html