CVE-2020-11072: Slp validate False-negative Validation Results Vulnerability

CRITICAL
Advisory Identifier: GHSA-4w97-57v2-3w44
CVSS 8.6
CWE-697
Published
Advisory Summary

CVE-2020-11072 is a CRITICAL (CVSS 8.6) false-negative validation results vulnerability (CWE-697: Incorrect Comparison) affecting Slp validate libraries in the npm ecosystem. The issue involves false-negative validation results in mint transactions with invalid baton. Remediation is available by upgrading affected packages to version 1.2.1.

CVE-2020-11072 at a Glance

CVE Identifier CVE-2020-11072
GHSA Identifier GHSA-4w97-57v2-3w44
Severity CRITICAL
CVSS v3.1 Base Score 8.6
CWE Classification CWE-697: Incorrect Comparison
Affected Product Slp validate
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-11072

To remediate this vulnerability, upgrade all affected Slp validate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

slp-validate fixed: 1.2.1
npm install slp-validate@1.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls slp-validate

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-11072, inspect your project dependencies using npm:

npm ls slp-validate

Analyze the terminal output to locate any version of Slp validate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), your application is affected.

Note: The npm ls slp-validate command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-697: Incorrect Comparison, where the product compares two entities in a security-relevant context, but the comparison is incorrect. In Slp validate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Users could experience false-negative validation outcomes for [MINT](https://github.com/simpleledger/slp-specifications/blob/master/slp-token-type-1.md#mint---extended-minting-transaction) transaction operations. A poorly implemented SLP wallet could allow spending of the affected tokens which would result in the destruction of a user's minting baton. ### Patches npm package [slp-validate](https://www.npmjs.com/package/slp-validate) has been patched and published as version 1.2.1. ### Workarounds Upgrade to slp-validate 1.2.1. ### References * slp-validate [commit](https://github.com/simpleledger/slp-validate/commit/cde95c0c6470dceb4f023cd462f904135ebd73e7) ### For more information If you have any questions or comments about this advisory: * Open an issue in [slp-validate](https://github.com/simpleledger/slp-validate/issues)

CVE-2020-11072 Affected Slp validate Versions

1 component(s)
Fixed Versions:
1.2.1
Product / Package Ecosystem Affected Versions Fixed Version
slp-validate
npm
< 1.2.1
1.2.1

References

Frequently Asked Questions

What is CVE-2020-11072?
CVE-2020-11072 is a security vulnerability in Slp validate involving False-negative validation results in MINT transactions with invalid baton under CWE-697: Incorrect Comparison.
Which Slp validate versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: slp-validate.
What version fixes CVE-2020-11072?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is slp-validate affected?
Yes, slp-validate is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of CVE-2020-11072?
CVE-2020-11072 has a CVSS v3.1 base score of 8.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2020-11072?
CVE-2020-11072 is classified under CWE-697: Incorrect Comparison (The product compares two entities in a security-relevant context, but the comparison is incorrect.).
How can I check npm dependencies for CVE-2020-11072?
Run the dependency tree command: 'npm ls slp-validate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4w97-57v2-3w44",
  "modified" : "2021-01-08T20:17:36Z",
  "published" : "2020-05-12T00:45:24Z",
  "aliases" : [ "CVE-2020-11072" ],
  "summary" : "False-negative validation results in MINT transactions with invalid baton",
  "details" : "### Impact\nUsers could experience false-negative validation outcomes for [MINT](https://github.com/simpleledger/slp-specifications/blob/master/slp-token-type-1.md#mint---extended-minting-transaction) transaction operations.  A poorly implemented SLP wallet could allow spending of the affected tokens which would result in the destruction of a user's minting baton.\n\n### Patches\nnpm package [slp-validate](https://www.npmjs.com/package/slp-validate) has been patched and published as version 1.2.1.\n\n### Workarounds\nUpgrade to slp-validate 1.2.1.\n\n### References\n* slp-validate [commit](https://github.com/simpleledger/slp-validate/commit/cde95c0c6470dceb4f023cd462f904135ebd73e7)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [slp-validate](https://github.com/simpleledger/slp-validate/issues)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "slp-validate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simpleledger/slp-validate.js/security/advisories/GHSA-4w97-57v2-3w44"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simpleledger/slp-validate/security/advisories/GHSA-4w97-57v2-3w44"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11072"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simpleledger/slp-validate/commit/cde95c0c6470dceb4f023cd462f904135ebd73e7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-697" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-05-12T00:45:14Z",
    "nvd_published_at" : null
  }
}