CVE-2020-11007: Sm core model Negative Charge Vulnerability

CRITICAL
Advisory Identifier: GHSA-w8rc-pgxq-x2cj
CVSS 6.5
CWE-20
Published
Advisory Summary

CVE-2020-11007 is a CRITICAL (CVSS 6.5) negative charge vulnerability (CWE-20: Improper Input Validation) affecting Sm core model libraries in the Maven ecosystem. The issue involves negative charge in shopping cart in shopizer. Remediation is available by upgrading affected packages to version 2.11.0.

CVE-2020-11007 at a Glance

CVE Identifier CVE-2020-11007
GHSA Identifier GHSA-w8rc-pgxq-x2cj
Severity CRITICAL
CVSS v3.1 Base Score 6.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Sm core model
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2020-11007

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

com.shopizer:sm-core-model fixed: 2.11.0
<dependency>
    <groupId>com.shopizer</groupId>
    <artifactId>sm-core-model</artifactId>
    <version>2.11.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

mvn dependency:tree -Dincludes=com.shopizer

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2020-11007, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.shopizer

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

Note: The mvn dependency:tree -Dincludes=com.shopizer command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Sm core model, 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 Using API or Controller based versions negative quantity is not adequately validated hence creating incorrect shopping cart and order total. ### Patches Adding a back-end verification to check that quantity parameter isn't negative. If so, it is set to 1. Patched in 2.11.0 ### Workarounds Without uprading, it's possible to just apply the fixes in the same files it's done for the patch. Or you use javax constraint validation on the quantity parameter. ### References [Input Validation](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html) [Using bean validation constraint](https://javaee.github.io/tutorial/bean-validation002.html) [Commits with fixes](https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a) CVE Details below : [Mitre](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11007) [NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-11007) ### Credits Found and solved by Yannick Gosset from Aix-Marseille University cybersecurity master program supervised by Yassine Ilmi

CVE-2020-11007 Affected Sm core model Versions

1 component(s)
Fixed Versions:
2.11.0
Product / Package Ecosystem Affected Versions Fixed Version
com.shopizer:sm-core-model
Maven
< 2.11.0
2.11.0

References

Frequently Asked Questions

What is CVE-2020-11007?
CVE-2020-11007 is a security vulnerability in Sm core model involving Negative charge in shopping cart in Shopizer under CWE-20: Improper Input Validation.
Which Sm core model versions are affected?
Affected versions include releases prior to 2.11.0 across affected packages: com.shopizer:sm-core-model.
What version fixes CVE-2020-11007?
Upgrading to 2.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sm-core-model affected?
Yes, com.shopizer:sm-core-model is affected in releases prior to 2.11.0. Upgrade your dependency to 2.11.0 or later.
What is the CVSS score of CVE-2020-11007?
CVE-2020-11007 has a CVSS v3.1 base score of 6.5 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2020-11007?
CVE-2020-11007 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2020-11007?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.shopizer'. 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-w8rc-pgxq-x2cj",
  "modified" : "2021-01-08T21:09:16Z",
  "published" : "2020-04-22T20:59:26Z",
  "aliases" : [ "CVE-2020-11007" ],
  "summary" : "Negative charge in shopping cart in Shopizer",
  "details" : "### Impact\nUsing API or Controller based versions negative quantity is not adequately validated hence creating incorrect shopping cart and order total. \n\n### Patches\nAdding a back-end verification to check that quantity parameter isn't negative. If so, it is set to 1. Patched in 2.11.0\n\n### Workarounds\nWithout uprading, it's possible to just apply the fixes in the same files it's done for the patch. Or you use javax constraint validation on the quantity parameter.\n\n### References\n[Input Validation](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n[Using bean validation constraint](https://javaee.github.io/tutorial/bean-validation002.html)\n[Commits with fixes](https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a)\nCVE Details below : \n[Mitre](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11007)\n[NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-11007)\n\n### Credits\nFound and solved by Yannick Gosset from Aix-Marseille University cybersecurity\nmaster program supervised by Yassine Ilmi ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.shopizer:sm-core-model"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/shopizer-ecommerce/shopizer/security/advisories/GHSA-w8rc-pgxq-x2cj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11007"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-04-16T18:16:42Z",
    "nvd_published_at" : null
  }
}