Vulnerabilities > CVE-2012-4505 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Libproxy Project Libproxy 0.2.3/0.3.0/0.3.1
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Heap-based buffer overflow in the px_pac_reload function in lib/pac.c in libproxy 0.2.x and 0.3.x allows remote servers to have an unspecified impact via a crafted Content-Length size in an HTTP response header for a proxy.pac file request, a different vulnerability than CVE-2012-4504.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 3 |
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.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2012-1461.NASL description Updated libproxy packages that fix one security issue are now available for Red Hat Enterprise Linux 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. libproxy is a library that handles all the details of proxy configuration. A buffer overflow flaw was found in the way libproxy handled the downloading of proxy auto-configuration (PAC) files. A malicious server hosting a PAC file or a man-in-the-middle attacker could use this flaw to cause an application using libproxy to crash or, possibly, execute arbitrary code, if the proxy settings obtained by libproxy (from the environment or the desktop environment settings) instructed the use of a PAC proxy configuration. (CVE-2012-4505) This issue was discovered by the Red Hat Security Response Team. Users of libproxy should upgrade to these updated packages, which contain a backported patch to correct this issue. All applications using libproxy must be restarted for this update to take effect. last seen 2020-06-01 modified 2020-06-02 plugin id 62922 published 2012-11-15 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/62922 title RHEL 6 : libproxy (RHSA-2012:1461) code # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Red Hat Security Advisory RHSA-2012:1461. The text # itself is copyright (C) Red Hat, Inc. # include("compat.inc"); if (description) { script_id(62922); script_version ("1.16"); script_cvs_date("Date: 2019/10/24 15:35:36"); script_cve_id("CVE-2012-4505"); script_bugtraq_id(55910); script_xref(name:"RHSA", value:"2012:1461"); script_name(english:"RHEL 6 : libproxy (RHSA-2012:1461)"); script_summary(english:"Checks the rpm output for the updated packages"); script_set_attribute( attribute:"synopsis", value:"The remote Red Hat host is missing one or more security updates." ); script_set_attribute( attribute:"description", value: "Updated libproxy packages that fix one security issue are now available for Red Hat Enterprise Linux 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. libproxy is a library that handles all the details of proxy configuration. A buffer overflow flaw was found in the way libproxy handled the downloading of proxy auto-configuration (PAC) files. A malicious server hosting a PAC file or a man-in-the-middle attacker could use this flaw to cause an application using libproxy to crash or, possibly, execute arbitrary code, if the proxy settings obtained by libproxy (from the environment or the desktop environment settings) instructed the use of a PAC proxy configuration. (CVE-2012-4505) This issue was discovered by the Red Hat Security Response Team. Users of libproxy should upgrade to these updated packages, which contain a backported patch to correct this issue. All applications using libproxy must be restarted for this update to take effect." ); script_set_attribute( attribute:"see_also", value:"https://access.redhat.com/errata/RHSA-2012:1461" ); script_set_attribute( attribute:"see_also", value:"https://access.redhat.com/security/cve/cve-2012-4505" ); script_set_attribute(attribute:"solution", value:"Update the affected packages."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C"); script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-bin"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-debuginfo"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-devel"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-gnome"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-kde"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-mozjs"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-python"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libproxy-webkit"); script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:6"); script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:6.3"); script_set_attribute(attribute:"vuln_publication_date", value:"2012/11/11"); script_set_attribute(attribute:"patch_publication_date", value:"2012/11/14"); script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/15"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"Red Hat Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("misc_func.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) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat"); os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat"); os_ver = os_ver[1]; if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 6.x", "Red Hat " + 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$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu); yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo"); if (!empty_or_null(yum_updateinfo)) { rhsa = "RHSA-2012:1461"; yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa); if (!empty_or_null(yum_report)) { security_report_v4( port : 0, severity : SECURITY_HOLE, extra : yum_report ); exit(0); } else { audit_message = "affected by Red Hat security advisory " + rhsa; audit(AUDIT_OS_NOT, audit_message); } } else { flag = 0; if (rpm_check(release:"RHEL6", reference:"libproxy-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libproxy-bin-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libproxy-bin-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libproxy-bin-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", reference:"libproxy-debuginfo-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", reference:"libproxy-devel-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libproxy-gnome-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libproxy-gnome-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libproxy-gnome-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libproxy-kde-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libproxy-kde-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libproxy-kde-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libproxy-mozjs-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libproxy-mozjs-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libproxy-mozjs-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libproxy-python-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libproxy-python-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libproxy-python-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libproxy-webkit-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libproxy-webkit-0.3.0-3.el6_3")) flag++; if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libproxy-webkit-0.3.0-3.el6_3")) flag++; if (flag) { security_report_v4( port : 0, severity : SECURITY_HOLE, extra : rpm_report_get() + redhat_report_package_caveat() ); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libproxy / libproxy-bin / libproxy-debuginfo / libproxy-devel / etc"); } }
NASL family SuSE Local Security Checks NASL id SUSE_11_LIBPROXY-121123.NASL description This update for libproxy fixes a heap-based buffer overflow that could have allowed remote servers to have an unspecified impact via a crafted Content-Length size in an HTTP response header for a proxy.pac file request. (CVE-2012-4505) Additionally, it fixes parsing of the $no_proxy environment variable when it contains more than one URL separated by white-spaces. last seen 2020-06-05 modified 2013-01-25 plugin id 64191 published 2013-01-25 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/64191 title SuSE 11.2 Security Update : libproxy (SAT Patch Number 7092) NASL family SuSE Local Security Checks NASL id OPENSUSE-2012-720.NASL description This update of libproxy fixed a buffer overflow flaw. last seen 2020-06-05 modified 2014-06-13 plugin id 74787 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74787 title openSUSE Security Update : libproxy / libproxy-plugins (openSUSE-SU-2012:1375-1) NASL family Scientific Linux Local Security Checks NASL id SL_20121114_LIBPROXY_ON_SL6_X.NASL description A buffer overflow flaw was found in the way libproxy handled the downloading of proxy auto-configuration (PAC) files. A malicious server hosting a PAC file or a man-in-the-middle attacker could use this flaw to cause an application using libproxy to crash or, possibly, execute arbitrary code, if the proxy settings obtained by libproxy (from the environment or the desktop environment settings) instructed the use of a PAC proxy configuration. (CVE-2012-4505) All applications using libproxy must be restarted for this update to take effect. last seen 2020-03-18 modified 2012-11-16 plugin id 62933 published 2012-11-16 reporter This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/62933 title Scientific Linux Security Update : libproxy on SL6.x i386/x86_64 (20121114) NASL family CentOS Local Security Checks NASL id CENTOS_RHSA-2012-1461.NASL description Updated libproxy packages that fix one security issue are now available for Red Hat Enterprise Linux 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. libproxy is a library that handles all the details of proxy configuration. A buffer overflow flaw was found in the way libproxy handled the downloading of proxy auto-configuration (PAC) files. A malicious server hosting a PAC file or a man-in-the-middle attacker could use this flaw to cause an application using libproxy to crash or, possibly, execute arbitrary code, if the proxy settings obtained by libproxy (from the environment or the desktop environment settings) instructed the use of a PAC proxy configuration. (CVE-2012-4505) This issue was discovered by the Red Hat Security Response Team. Users of libproxy should upgrade to these updated packages, which contain a backported patch to correct this issue. All applications using libproxy must be restarted for this update to take effect. last seen 2020-06-01 modified 2020-06-02 plugin id 62928 published 2012-11-16 reporter This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/62928 title CentOS 6 : libproxy (CESA-2012:1461) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2571.NASL description The Red Hat Security Response Team discovered that libproxy, a library for automatic proxy configuration management, applied insufficient validation to the Content-Length header sent by a server providing a proxy.pac file. Such remote server could trigger an integer overflow and consequently overflow an in-memory buffer. last seen 2020-03-17 modified 2012-11-05 plugin id 62804 published 2012-11-05 reporter This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/62804 title Debian DSA-2571-1 : libproxy - buffer overflow NASL family Amazon Linux Local Security Checks NASL id ALA_ALAS-2012-140.NASL description A buffer overflow flaw was found in the way libproxy handled the downloading of proxy auto-configuration (PAC) files. A malicious server hosting a PAC file or a man-in-the-middle attacker could use this flaw to cause an application using libproxy to crash or, possibly, execute arbitrary code, if the proxy settings obtained by libproxy (from the environment or the desktop environment settings) instructed the use of a PAC proxy configuration. (CVE-2012-4505) last seen 2020-06-01 modified 2020-06-02 plugin id 69630 published 2013-09-04 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69630 title Amazon Linux AMI : libproxy (ALAS-2012-140) NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2012-1461.NASL description From Red Hat Security Advisory 2012:1461 : Updated libproxy packages that fix one security issue are now available for Red Hat Enterprise Linux 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. libproxy is a library that handles all the details of proxy configuration. A buffer overflow flaw was found in the way libproxy handled the downloading of proxy auto-configuration (PAC) files. A malicious server hosting a PAC file or a man-in-the-middle attacker could use this flaw to cause an application using libproxy to crash or, possibly, execute arbitrary code, if the proxy settings obtained by libproxy (from the environment or the desktop environment settings) instructed the use of a PAC proxy configuration. (CVE-2012-4505) This issue was discovered by the Red Hat Security Response Team. Users of libproxy should upgrade to these updated packages, which contain a backported patch to correct this issue. All applications using libproxy must be restarted for this update to take effect. last seen 2020-06-01 modified 2020-06-02 plugin id 68657 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/68657 title Oracle Linux 6 : libproxy (ELSA-2012-1461) NASL family Solaris Local Security Checks NASL id SOLARIS11_LIBPROXY_20140114.NASL description The remote Solaris system is missing necessary patches to address security updates : - Stack-based buffer overflow in the url::get_pac function in url.cpp in libproxy 0.4.x before 0.4.9 allows remote servers to have an unspecified impact via a large proxy.pac file. (CVE-2012-4504) - Heap-based buffer overflow in the px_pac_reload function in lib/pac.c in libproxy 0.2.x and 0.3.x allows remote servers to have an unspecified impact via a crafted Content-Length size in an HTTP response header for a proxy.pac file request, a different vulnerability than CVE-2012-4504. (CVE-2012-4505) last seen 2020-06-01 modified 2020-06-02 plugin id 80675 published 2015-01-19 reporter This script is Copyright (C) 2015-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/80675 title Oracle Solaris Third-Party Patch Update : libproxy (multiple_buffer_errors_vulnerability_in1) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-1629-1.NASL description Tomas Mraz discovered that libproxy incorrectly handled certain PAC files. A remote attacker could use this issue to cause libproxy to crash, or to possibly execute arbitrary code. (CVE-2012-4504, CVE-2012-4505). 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 62899 published 2012-11-13 reporter Ubuntu Security Notice (C) 2012-2019 Canonical, Inc. / NASL script (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/62899 title Ubuntu 10.04 LTS / 11.10 / 12.04 LTS : libproxy vulnerabilities (USN-1629-1)
Redhat
advisories |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rpms |
|
References
- http://secunia.com/advisories/51048
- http://secunia.com/advisories/51180
- http://www.openwall.com/lists/oss-security/2012/10/12/1
- http://www.debian.org/security/2012/dsa-2571
- http://www.openwall.com/lists/oss-security/2012/10/12/5
- http://www.openwall.com/lists/oss-security/2012/10/16/3
- http://www.securityfocus.com/bid/55910
- https://bugzilla.redhat.com/show_bug.cgi?id=864612
- http://lists.opensuse.org/opensuse-updates/2012-10/msg00065.html
- http://www.ubuntu.com/usn/USN-1629-1
- http://rhn.redhat.com/errata/RHSA-2012-1461.html
- http://secunia.com/advisories/51308
- https://groups.google.com/forum/?fromgroups=#%21topic/libproxy/VxZ8No7mT0E