Vulnerabilities > CVE-2017-11499 - Improper Input Validation vulnerability in Nodejs Node.Js

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
HIGH
network
low complexity
nodejs
CWE-20
nessus

Summary

Node.js v4.0 through v4.8.3, all versions of v5.x, v6.0 through v6.11.0, v7.0 through v7.10.0, and v8.0 through v8.1.3 was susceptible to hash flooding remote DoS attacks as the HashTable seed was constant across a given released version of Node.js. This was a result of building with V8 snapshots enabled by default which caused the initially randomized seed to be overwritten on startup.

Vulnerable Configurations

Part Description Count
Application
Nodejs
100

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 familySuSE Local Security Checks
    NASL idOPENSUSE-2017-948.NASL
    descriptionThis update for nodejs4 and nodejs6 fixes the following issues : Security issues fixed : - CVE-2017-1000381: The c-ares function ares_parse_naptr_reply() could be triggered to read memory outside of the given input buffer if the passed in DNS response packet was crafted in a particular way. (bsc#1044946) - CVE-2017-11499: Disable V8 snapshots. The hashseed embedded in the snapshot is currently the same for all runs of the binary. This opens node up to collision attacks which could result in a Denial of Service. We have temporarily disabled snapshots until a more robust solution is found. (bsc#1048299) Non-security fixes : - GCC 7 compilation fixes for v8 backported and add missing ICU59 headers (bsc#1041282) - New upstream LTS release 6.11.1 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.1 - New upstream LTS release 6.11.0 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.0 - New upstream LTS release 6.10.3 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.3 - New upstream LTS release 6.10.2 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.2 - New upstream LTS release 6.10.1 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.1 - New upstream LTS release 6.10.0 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.0 - New upstream LTS release 4.8.4 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.4 - New upstream LTS release 4.8.3 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.3 - New upstream LTS release 4.8.2 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.2 - New upstream LTS release 4.8.1 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.1 - New upstream LTS release 4.8.0 - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0 This update was imported from the SUSE:SLE-12:Update update project.
    last seen2020-06-05
    modified2017-08-18
    plugin id102564
    published2017-08-18
    reporterThis script is Copyright (C) 2017-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/102564
    titleopenSUSE Security Update : nodejs4 / nodejs6 (openSUSE-2017-948)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update openSUSE-2017-948.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(102564);
      script_version("3.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2017-1000381", "CVE-2017-11499");
    
      script_name(english:"openSUSE Security Update : nodejs4 / nodejs6 (openSUSE-2017-948)");
      script_summary(english:"Check for the openSUSE-2017-948 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update for nodejs4 and nodejs6 fixes the following issues :
    
    Security issues fixed :
    
      - CVE-2017-1000381: The c-ares function
        ares_parse_naptr_reply() could be triggered to read
        memory outside of the given input buffer if the passed
        in DNS response packet was crafted in a particular way.
        (bsc#1044946)
    
      - CVE-2017-11499: Disable V8 snapshots. The hashseed
        embedded in the snapshot is currently the same for all
        runs of the binary. This opens node up to collision
        attacks which could result in a Denial of Service. We
        have temporarily disabled snapshots until a more robust
        solution is found. (bsc#1048299)
    
    Non-security fixes :
    
      - GCC 7 compilation fixes for v8 backported and add
        missing ICU59 headers (bsc#1041282)
    
      - New upstream LTS release 6.11.1
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.1
    
      - New upstream LTS release 6.11.0
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.0
    
      - New upstream LTS release 6.10.3
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.3
    
      - New upstream LTS release 6.10.2
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.2
    
      - New upstream LTS release 6.10.1
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.1
    
      - New upstream LTS release 6.10.0
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.0
    
      - New upstream LTS release 4.8.4
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.4
    
      - New upstream LTS release 4.8.3
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.3
    
      - New upstream LTS release 4.8.2
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.2
    
      - New upstream LTS release 4.8.1
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.1
    
      - New upstream LTS release 4.8.0
    
      - https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0
    
    This update was imported from the SUSE:SLE-12:Update update project."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1041282"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1041283"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1044946"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1048299"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?6e76fcd6"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?d586980d"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?3af76941"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.3
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?2dc50043"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.4
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?cfaf99af"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.0
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a6929afa"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?971b1fd5"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?60de5186"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.10.3
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?e6bb8119"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.0
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a27d290e"
      );
      # https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?d5b218e3"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected nodejs4 / nodejs6 packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs4");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs4-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs4-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs4-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs6");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs6-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs6-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:nodejs6-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:npm4");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:npm6");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:42.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:42.3");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2017/08/16");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/08/18");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2017-2020 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      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/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE42\.2|SUSE42\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "42.2 / 42.3", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE42.2", reference:"nodejs-common-1.0-2.1") ) flag++;
    if ( rpm_check(release:"SUSE42.2", reference:"nodejs4-4.8.4-5.6.1") ) flag++;
    if ( rpm_check(release:"SUSE42.2", reference:"nodejs4-debuginfo-4.8.4-5.6.1") ) flag++;
    if ( rpm_check(release:"SUSE42.2", reference:"nodejs4-debugsource-4.8.4-5.6.1") ) flag++;
    if ( rpm_check(release:"SUSE42.2", reference:"nodejs4-devel-4.8.4-5.6.1") ) flag++;
    if ( rpm_check(release:"SUSE42.2", reference:"npm4-4.8.4-5.6.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs-common-1.0-2.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs4-4.8.4-8.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs4-debuginfo-4.8.4-8.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs4-debugsource-4.8.4-8.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs4-devel-4.8.4-8.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs6-6.11.1-3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs6-debuginfo-6.11.1-3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs6-debugsource-6.11.1-3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"nodejs6-devel-6.11.1-3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"npm4-4.8.4-8.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"npm6-6.11.1-3.1") ) 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, "nodejs-common / nodejs4 / nodejs4-debuginfo / nodejs4-debugsource / etc");
    }
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2017-2168-1.NASL
    descriptionThis update for nodejs4 and nodejs6 fixes the following issues: Security issues fixed : - CVE-2017-1000381: The c-ares function ares_parse_naptr_reply() could be triggered to read memory outside of the given input buffer if the passed in DNS response packet was crafted in a particular way. (bsc#1044946) - CVE-2017-11499: Disable V8 snapshots. The hashseed embedded in the snapshot is currently the same for all runs of the binary. This opens node up to collision attacks which could result in a Denial of Service. We have temporarily disabled snapshots until a more robust solution is found. (bsc#1048299) Non-security fixes : - GCC 7 compilation fixes for v8 backported and add missing ICU59 headers (bsc#1041282) - New upstream LTS release 6.11.1 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V6.md#6 .11.1 - New upstream LTS release 6.11.0 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V6.md#6 .11.0 - New upstream LTS release 6.10.3 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V6.md#6 .10.3 - New upstream LTS release 6.10.2 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V6.md#6 .10.2 - New upstream LTS release 6.10.1 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V6.md#6 .10.1 - New upstream LTS release 6.10.0 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V6.md#6 .10.0 - New upstream LTS release 4.8.4 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V4.md#4 .8.4 - New upstream LTS release 4.8.3 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V4.md#4 .8.3 - New upstream LTS release 4.8.2 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V4.md#4 .8.2 - New upstream LTS release 4.8.1 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V4.md#4 .8.1 - New upstream LTS release 4.8.0 https://github.com/nodejs/node/blob/master/doc/changelog s/CHANGELOG_V4.md#4 .8.0 Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-24
    modified2019-01-02
    plugin id120002
    published2019-01-02
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/120002
    titleSUSE SLES12 Security Update : nodejs4, nodejs6 (SUSE-SU-2017:2168-1)

Redhat

advisories
  • rhsa
    idRHSA-2017:2908
  • rhsa
    idRHSA-2017:3002
rpms
  • rh-nodejs6-nodejs-0:6.11.3-2.el6
  • rh-nodejs6-nodejs-0:6.11.3-2.el7
  • rh-nodejs6-nodejs-debuginfo-0:6.11.3-2.el6
  • rh-nodejs6-nodejs-debuginfo-0:6.11.3-2.el7
  • rh-nodejs6-nodejs-devel-0:6.11.3-2.el6
  • rh-nodejs6-nodejs-devel-0:6.11.3-2.el7
  • rh-nodejs6-nodejs-docs-0:6.11.3-2.el6
  • rh-nodejs6-nodejs-docs-0:6.11.3-2.el7
  • rh-nodejs4-0:2.4-3.el7
  • rh-nodejs4-0:2.4-4.el6
  • rh-nodejs4-node-gyp-0:3.3.1-5.el6
  • rh-nodejs4-nodejs-1:4.6.2-6.el7
  • rh-nodejs4-nodejs-1:4.6.2-7.el6
  • rh-nodejs4-nodejs-debuginfo-1:4.6.2-6.el7
  • rh-nodejs4-nodejs-debuginfo-1:4.6.2-7.el6
  • rh-nodejs4-nodejs-devel-1:4.6.2-6.el7
  • rh-nodejs4-nodejs-devel-1:4.6.2-7.el6
  • rh-nodejs4-nodejs-docs-1:4.6.2-6.el7
  • rh-nodejs4-nodejs-docs-1:4.6.2-7.el6
  • rh-nodejs4-runtime-0:2.4-3.el7
  • rh-nodejs4-runtime-0:2.4-4.el6
  • rh-nodejs4-scldevel-0:2.4-3.el7
  • rh-nodejs4-scldevel-0:2.4-4.el6