Vulnerabilities > CVE-2013-1436 - Code Injection vulnerability in Xmonad Xmonad-Contrab 0.11
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
The XMonad.Hooks.DynamicLog module in xmonad-contrib before 0.11.2 allows remote attackers to execute arbitrary commands via a web page title, which activates the commands when the user clicks on the xmobar window title, as demonstrated using an action tag.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 2 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- 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 User-Controlled Variables This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Exploit-Db
description | xmonad XMonad.Hooks.DynamicLog Module Multiple Remote Command Injection Vulnerabilities. CVE-2013-1436. Remote exploit for linux platform |
id | EDB-ID:38680 |
last seen | 2016-02-04 |
modified | 2013-07-26 |
published | 2013-07-26 |
reporter | Joachim Breitner |
source | https://www.exploit-db.com/download/38680/ |
title | xmonad XMonad.Hooks.DynamicLog Module Multiple Remote Command Injection Vulnerabilities |
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2013-13332.NASL description - xmonad-contrib-0.11.2 fixes a vulnerability in the DynamicLog module - update X11 to 1.6.1.1 - update xmobar to 0.18 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-03-17 modified 2013-08-06 plugin id 69216 published 2013-08-06 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69216 title Fedora 19 : bluetile-0.6-18.fc19 / ghc-X11-1.6.1.1-1.fc19 / ghc-X11-xft-0.3.1-10.fc19 / etc (2013-13332) 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 2013-13332. # include("compat.inc"); if (description) { script_id(69216); script_version("1.5"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12"); script_cve_id("CVE-2013-1436"); script_xref(name:"FEDORA", value:"2013-13332"); script_name(english:"Fedora 19 : bluetile-0.6-18.fc19 / ghc-X11-1.6.1.1-1.fc19 / ghc-X11-xft-0.3.1-10.fc19 / etc (2013-13332)"); script_summary(english:"Checks rpm output for the updated packages."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing one or more security updates." ); script_set_attribute( attribute:"description", value: " - xmonad-contrib-0.11.2 fixes a vulnerability in the DynamicLog module - update X11 to 1.6.1.1 - update xmobar to 0.18 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=989670" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113313.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?0d5835b2" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113314.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?19c0a24e" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113315.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?9b819b46" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113316.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?bf8eeca4" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113317.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?08c77e80" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113318.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?041c9fbf" ); script_set_attribute(attribute:"solution", value:"Update the affected packages."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:bluetile"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ghc-X11"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ghc-X11-xft"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ghc-xmonad-contrib"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:xmobar"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:xmonad"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:19"); script_set_attribute(attribute:"patch_publication_date", value:"2013/07/21"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/08/06"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2013-2020 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:"^19([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 19.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:"FC19", reference:"bluetile-0.6-18.fc19")) flag++; if (rpm_check(release:"FC19", reference:"ghc-X11-1.6.1.1-1.fc19")) flag++; if (rpm_check(release:"FC19", reference:"ghc-X11-xft-0.3.1-10.fc19")) flag++; if (rpm_check(release:"FC19", reference:"ghc-xmonad-contrib-0.11.2-1.fc19")) flag++; if (rpm_check(release:"FC19", reference:"xmobar-0.18-1.fc19")) flag++; if (rpm_check(release:"FC19", reference:"xmonad-0.11-4.fc19")) flag++; if (flag) { if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get()); else security_hole(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "bluetile / ghc-X11 / ghc-X11-xft / ghc-xmonad-contrib / xmobar / etc"); }
NASL family Fedora Local Security Checks NASL id FEDORA_2013-13388.NASL description Backport fix for a potential vulnerability in xmonad-contrib last seen 2020-03-17 modified 2013-08-06 plugin id 69217 published 2013-08-06 reporter This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/69217 title Fedora 18 : bluetile-0.6-13.fc18 / ghc-xmonad-contrib-0.11-1.1.fc18 (2013-13388) 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 2013-13388. # include("compat.inc"); if (description) { script_id(69217); script_version("1.7"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12"); script_cve_id("CVE-2013-1436"); script_bugtraq_id(61491); script_xref(name:"FEDORA", value:"2013-13388"); script_name(english:"Fedora 18 : bluetile-0.6-13.fc18 / ghc-xmonad-contrib-0.11-1.1.fc18 (2013-13388)"); script_summary(english:"Checks rpm output for the updated packages."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing one or more security updates." ); script_set_attribute( attribute:"description", value: "Backport fix for a potential vulnerability in xmonad-contrib's DynamicLog module 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=989670" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113311.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?e199c3ce" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-August/113312.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?01f4299b" ); script_set_attribute( attribute:"solution", value:"Update the affected bluetile and / or ghc-xmonad-contrib packages." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:ND"); 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:fedoraproject:fedora:bluetile"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ghc-xmonad-contrib"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:18"); script_set_attribute(attribute:"patch_publication_date", value:"2013/07/22"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/08/06"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2013-2020 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:"^18([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 18.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:"FC18", reference:"bluetile-0.6-13.fc18")) flag++; if (rpm_check(release:"FC18", reference:"ghc-xmonad-contrib-0.11-1.1.fc18")) flag++; if (flag) { if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get()); else security_hole(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "bluetile / ghc-xmonad-contrib"); }
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201405-28.NASL description The remote host is affected by the vulnerability described in GLSA-201405-28 (xmonad-contrib: Arbitrary code execution) A vulnerability in the Xmonad.Hooks.DynamicLog module could allow a malicious website with a specially crafted title to inject commands into the title bar which would be executed when the bar is clicked. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process or cause a Denial of Service condition. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 74234 published 2014-05-29 reporter This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74234 title GLSA-201405-28 : xmonad-contrib: Arbitrary code execution
References
- http://handra.rampa.sk/dawb/patch?repoPURL=http%3A%2F%2Fcode.haskell.org%2FXMonadContrib&repoPHash=20130708144813-1499c-0c3e284d3523c0694b9423714081761813bc1e89
- http://security.gentoo.org/glsa/glsa-201405-28.xml
- http://www.openwall.com/lists/oss-security/2013/07/26/5
- http://www.securityfocus.com/bid/61491