Resources Downloaded over Insecure Protocol

Affecting ec2-price package, versions <0.5.0

Do your applications use this vulnerable package? Test your applications

Overview

ec2-price retrieves the latest EC2 prices via command line.

Affected versions of the package are vulnerable to Man in the Middle (MitM) attacks due to downloading resources over an insecure protocol. Without a secure connection, it is possible for an attacker to intercept this connection and alter the packages received. In serious cases, this may even lead to Remote Code Execution (RCE) on your host server.

Many thanks to Liang Gong for disclosing this vulnerability.

Disclosure Timeline

  • April 24th, 2017 - Disclosed to package owner
  • April 24th, 2017 - Issue acknowledged by package owner.
  • April 27th, 2017 - Issue fixed and version 0.5.0 released.

Remediation

Upgrade ec2-price to version 0.5.0 or higher.

References

CVSS Score

7.1
high severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    Low
  • User Interaction
    Required
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
Credit
Liang Gong
CWE
CWE-494
Snyk ID
npm:ec2-price:20170418
Disclosed
24 Apr, 2017
Published
01 May, 2017