Vulnerabilities > CVE-2011-0702 - Link Following vulnerability in FEH Project FEH
Attack vector
LOCAL Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
NONE Integrity impact
PARTIAL Availability impact
PARTIAL Summary
The feh_unique_filename function in utils.c in feh before 1.11.2 might allow local users to overwrite arbitrary files via a symlink attack on a /tmp/feh_ temporary file.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Symlink Attack An attacker positions a symbolic link in such a manner that the targeted user or application accesses the link's endpoint, assuming that it is accessing a file with the link's name. The endpoint file may be either output or input. If the file is output, the result is that the endpoint is modified, instead of a file at the intended location. Modifications to the endpoint file may include appending, overwriting, corrupting, changing permissions, or other modifications. In some variants of this attack the attacker may be able to control the change to a file while in other cases they cannot. The former is especially damaging since the attacker may be able to grant themselves increased privileges or insert false information, but the latter can also be damaging as it can expose sensitive information or corrupt or destroy vital system or application files. Alternatively, the endpoint file may serve as input to the targeted application. This can be used to feed malformed input into the target or to cause the target to process different information, possibly allowing the attacker to control the actions of the target or to cause the target to expose information to the attacker. Moreover, the actions taken on the endpoint file are undertaken with the permissions of the targeted user or application, which may exceed the permissions that the attacker would normally have.
- Accessing, Modifying or Executing Executable Files An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating Input to File System Calls An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2011-8750.NASL description Changes since 0.10.1 : - Bug fixes * Make zoom_default key work properly with --geometry * Only create caption directory when actually writing out a caption. <http://github.com/derf/feh/issues/42> * read directory contents sorted by filename instead of last seen 2020-06-01 modified 2020-06-02 plugin id 55499 published 2011-07-05 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/55499 title Fedora 15 : feh-1.14.1-1.fc15 (2011-8750) 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-8750. # include("compat.inc"); if (description) { script_id(55499); script_version("1.12"); script_cvs_date("Date: 2019/08/02 13:32:35"); script_cve_id("CVE-2011-0702"); script_bugtraq_id(46182); script_xref(name:"FEDORA", value:"2011-8750"); script_name(english:"Fedora 15 : feh-1.14.1-1.fc15 (2011-8750)"); 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: "Changes since 0.10.1 : - Bug fixes * Make zoom_default key work properly with --geometry * Only create caption directory when actually writing out a caption. <http://github.com/derf/feh/issues/42> * read directory contents sorted by filename instead of 'randomly' (as returned by readdir) by default. Thanks talisein! <https://github.com/derf/feh/pull/20> * Show certain warnings in the image window as well as on the commandline <http://github.com/derf/feh/issues/43> * Change a patch for NETWM fullscreen support to only apply to fullscreen windows. This fixes the moving windows bug in fluxbox (since fluxbox doesn't report its window border width). <http://github.com/derf/feh/issues/22> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570903 > * Minor manpage fixes. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625683 > * Fix --auto-zoom / --zoom max/fill documentation, the 'Auto-Zoom' menu option is now always checked when these options are used * Set _NET_WM_NAME and _NET_WM_ICON_NAME properties <http://github.com/derf/feh/issues/44> * The zoom_default key now works fine with --scale-down <http://github.com/derf/feh/issues/41> * Fix access of uninitialized memory / malloc/realloc clash in continued theme definition handling. Having a theme line with just one option/value pair used to produce undefined behaviour * Fix segfault upon unloadable images when image-related format specifiers (e.g. %h) are used in --title * Fix Imlib2 caching bug in reload (only worked after the second try) * Show correct image dimensions in for cached thumbnails * Fix zooming when --scale-down is used * Make in/out zoom use equal zoom ratio - Behavior changes/compatability * --menu-style is now deprecated * The --menu-bg option has been deprecated. It will be removed along with --menu-style by the end of 2012. <http://github.com/derf/feh/issues/27> * Since the manual is way better structured and more detailed than the --help output, it now simply refers to the manual. * The 'A' key (toggle_aliasing) now actually changes the current window, and not just the default for new windows * Show images in current directory when invoked without file arguments * The --bg options are now Xinerama-aware. That is, they set the image in the respective mode (scale/fill/max/center) on each Xinerama screen. Use --no-xinerama to disable this. * Add --zoom fill as equivalent for --auto-zoom * Remove builtin http client (--builtin) * http images are now viewed using libcurl, not wget (thanks to talisein) This adds libcurl as dependency, and removes the wget recommendation * Allow commandline options to override those set in a theme * Remove support for FEH_OPTIONS (was deprecated >5 years ago) * Restrict available modifiers to Control/Mod1/Mod4 * The themes are now read from ~/.config/feh/themes (BC for .fehrc exists) * Key bindings can now be configured via ~/.config/feh/keys * Removes --rcpath, use XDG_CONFIG_HOME instead * Increase movement steps for Ctrl+Left etc. - Features * You can now use the next/prev/jump keys to navigate thumbnails. Use the render key to open the currently selected thumbnail. <http://github.com/derf/feh/issues/26> * Option to disable antialiasing, either global (--force-aliasing) or per image (press 'A' to toggle, keybinding toggle_aliasing) * Use SIGUSR1/SIGUSR2 to reload all images in multiwindow mode * Add --zoom max (zooming like in --bg-max) 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." ); # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570903 script_set_attribute( attribute:"see_also", value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570903" ); # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625683 script_set_attribute( attribute:"see_also", value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625683" ); # http://github.com/derf/feh/issues/22 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/22" ); # http://github.com/derf/feh/issues/26 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/26" ); # http://github.com/derf/feh/issues/27 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/27" ); # http://github.com/derf/feh/issues/41 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/41" ); # http://github.com/derf/feh/issues/42 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/42" ); # http://github.com/derf/feh/issues/43 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/43" ); # http://github.com/derf/feh/issues/44 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/44" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=676389" ); script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/pull/20" ); # https://lists.fedoraproject.org/pipermail/package-announce/2011-July/062280.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?85a0dced" ); script_set_attribute(attribute:"solution", value:"Update the affected feh package."); script_set_cvss_base_vector("CVSS2#AV:L/AC:M/Au:N/C:N/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:ND/RL:OF/RC:ND"); 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:fedoraproject:fedora:feh"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:15"); script_set_attribute(attribute:"vuln_publication_date", value:"2011/02/14"); script_set_attribute(attribute:"patch_publication_date", value:"2011/06/26"); script_set_attribute(attribute:"plugin_publication_date", value:"2011/07/05"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2011-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:"^15([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 15.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:"FC15", reference:"feh-1.14.1-1.fc15")) flag++; if (flag) { if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get()); else security_note(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "feh"); }
NASL family Fedora Local Security Checks NASL id FEDORA_2011-8747.NASL description Changes since 0.10.1 : - Bug fixes * Make zoom_default key work properly with --geometry * Only create caption directory when actually writing out a caption. <http://github.com/derf/feh/issues/42> * read directory contents sorted by filename instead of last seen 2020-06-01 modified 2020-06-02 plugin id 55498 published 2011-07-05 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/55498 title Fedora 14 : feh-1.14.1-1.fc14 (2011-8747) 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-8747. # include("compat.inc"); if (description) { script_id(55498); script_version("1.13"); script_cvs_date("Date: 2019/08/02 13:32:35"); script_cve_id("CVE-2011-0702"); script_bugtraq_id(46182); script_xref(name:"FEDORA", value:"2011-8747"); script_name(english:"Fedora 14 : feh-1.14.1-1.fc14 (2011-8747)"); 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: "Changes since 0.10.1 : - Bug fixes * Make zoom_default key work properly with --geometry * Only create caption directory when actually writing out a caption. <http://github.com/derf/feh/issues/42> * read directory contents sorted by filename instead of 'randomly' (as returned by readdir) by default. Thanks talisein! <https://github.com/derf/feh/pull/20> * Show certain warnings in the image window as well as on the commandline <http://github.com/derf/feh/issues/43> * Change a patch for NETWM fullscreen support to only apply to fullscreen windows. This fixes the moving windows bug in fluxbox (since fluxbox doesn't report its window border width). <http://github.com/derf/feh/issues/22> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570903 > * Minor manpage fixes. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625683 > * Fix --auto-zoom / --zoom max/fill documentation, the 'Auto-Zoom' menu option is now always checked when these options are used * Set _NET_WM_NAME and _NET_WM_ICON_NAME properties <http://github.com/derf/feh/issues/44> * The zoom_default key now works fine with --scale-down <http://github.com/derf/feh/issues/41> * Fix access of uninitialized memory / malloc/realloc clash in continued theme definition handling. Having a theme line with just one option/value pair used to produce undefined behaviour * Fix segfault upon unloadable images when image-related format specifiers (e.g. %h) are used in --title * Fix Imlib2 caching bug in reload (only worked after the second try) * Show correct image dimensions in for cached thumbnails * Fix zooming when --scale-down is used * Make in/out zoom use equal zoom ratio - Behavior changes/compatability * --menu-style is now deprecated * The --menu-bg option has been deprecated. It will be removed along with --menu-style by the end of 2012. <http://github.com/derf/feh/issues/27> * Since the manual is way better structured and more detailed than the --help output, it now simply refers to the manual. * The 'A' key (toggle_aliasing) now actually changes the current window, and not just the default for new windows * Show images in current directory when invoked without file arguments * The --bg options are now Xinerama-aware. That is, they set the image in the respective mode (scale/fill/max/center) on each Xinerama screen. Use --no-xinerama to disable this. * Add --zoom fill as equivalent for --auto-zoom * Remove builtin http client (--builtin) * http images are now viewed using libcurl, not wget (thanks to talisein) This adds libcurl as dependency, and removes the wget recommendation * Allow commandline options to override those set in a theme * Remove support for FEH_OPTIONS (was deprecated >5 years ago) * Restrict available modifiers to Control/Mod1/Mod4 * The themes are now read from ~/.config/feh/themes (BC for .fehrc exists) * Key bindings can now be configured via ~/.config/feh/keys * Removes --rcpath, use XDG_CONFIG_HOME instead * Increase movement steps for Ctrl+Left etc. - Features * You can now use the next/prev/jump keys to navigate thumbnails. Use the render key to open the currently selected thumbnail. <http://github.com/derf/feh/issues/26> * Option to disable antialiasing, either global (--force-aliasing) or per image (press 'A' to toggle, keybinding toggle_aliasing) * Use SIGUSR1/SIGUSR2 to reload all images in multiwindow mode * Add --zoom max (zooming like in --bg-max) 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." ); # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570903 script_set_attribute( attribute:"see_also", value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570903" ); # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625683 script_set_attribute( attribute:"see_also", value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625683" ); # http://github.com/derf/feh/issues/22 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/22" ); # http://github.com/derf/feh/issues/26 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/26" ); # http://github.com/derf/feh/issues/27 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/27" ); # http://github.com/derf/feh/issues/41 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/41" ); # http://github.com/derf/feh/issues/42 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/42" ); # http://github.com/derf/feh/issues/43 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/43" ); # http://github.com/derf/feh/issues/44 script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/issues/44" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=676389" ); script_set_attribute( attribute:"see_also", value:"https://github.com/derf/feh/pull/20" ); # https://lists.fedoraproject.org/pipermail/package-announce/2011-July/062285.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?2ec59727" ); script_set_attribute(attribute:"solution", value:"Update the affected feh package."); script_set_cvss_base_vector("CVSS2#AV:L/AC:M/Au:N/C:N/I:P/A:P"); 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:fedoraproject:fedora:feh"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:14"); script_set_attribute(attribute:"vuln_publication_date", value:"2011/02/14"); script_set_attribute(attribute:"patch_publication_date", value:"2011/06/26"); script_set_attribute(attribute:"plugin_publication_date", value:"2011/07/05"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2011-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:"^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:"feh-1.14.1-1.fc14")) flag++; if (flag) { if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get()); else security_note(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "feh"); }
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201110-08.NASL description The remote host is affected by the vulnerability described in GLSA-201110-08 (feh: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in feh. Please review the CVE identifiers referenced below for details. Impact : A malicious entity might entice a user to visit a URL using the --wget-timestamp option, thus executing arbitrary commands via shell metacharacters; a malicious local user could perform a symlink attack and overwrite arbitrary files. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 56501 published 2011-10-14 reporter This script is Copyright (C) 2011-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/56501 title GLSA-201110-08 : feh: Multiple vulnerabilities code # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Gentoo Linux Security Advisory GLSA 201110-08. # # The advisory text is Copyright (C) 2001-2015 Gentoo Foundation, Inc. # and licensed under the Creative Commons - Attribution / Share Alike # license. See http://creativecommons.org/licenses/by-sa/3.0/ # include("compat.inc"); if (description) { script_id(56501); script_version("1.6"); script_cvs_date("Date: 2018/07/11 17:09:26"); script_cve_id("CVE-2010-2246", "CVE-2011-0702", "CVE-2011-1031"); script_bugtraq_id(41161, 46182, 50128); script_xref(name:"GLSA", value:"201110-08"); script_name(english:"GLSA-201110-08 : feh: Multiple vulnerabilities"); script_summary(english:"Checks for updated package(s) in /var/db/pkg"); script_set_attribute( attribute:"synopsis", value: "The remote Gentoo host is missing one or more security-related patches." ); script_set_attribute( attribute:"description", value: "The remote host is affected by the vulnerability described in GLSA-201110-08 (feh: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in feh. Please review the CVE identifiers referenced below for details. Impact : A malicious entity might entice a user to visit a URL using the --wget-timestamp option, thus executing arbitrary commands via shell metacharacters; a malicious local user could perform a symlink attack and overwrite arbitrary files. Workaround : There is no known workaround at this time." ); script_set_attribute( attribute:"see_also", value:"https://security.gentoo.org/glsa/201110-08" ); script_set_attribute( attribute:"solution", value: "All feh users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose '>=media-gfx/feh-1.12'" ); script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P"); 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:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:feh"); script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux"); script_set_attribute(attribute:"patch_publication_date", value:"2011/10/13"); script_set_attribute(attribute:"plugin_publication_date", value:"2011/10/14"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2011-2018 Tenable Network Security, Inc."); script_family(english:"Gentoo Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("qpkg.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo"); if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if (qpkg_check(package:"media-gfx/feh", unaffected:make_list("ge 1.12"), vulnerable:make_list("lt 1.12"))) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:qpkg_report_get()); else security_warning(0); exit(0); } else { tested = qpkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "feh"); }
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612035
- http://openwall.com/lists/oss-security/2011/02/09/1
- http://openwall.com/lists/oss-security/2011/02/09/14
- http://secunia.com/advisories/43221
- https://bugs.launchpad.net/ubuntu/+source/feh/+bug/607328
- https://bugzilla.redhat.com/show_bug.cgi?id=676389
- https://derf.homelinux.org/git/feh/commit/?id=23421a86cc826dd30f3dc4f62057fafb04b3ac40
- https://derf.homelinux.org/git/feh/commit/?id=29ab0855f044ef2fe9c295b72abefcb37f0861a5
- https://github.com/derf/feh/issues/#issue/32