Vulnerabilities in pkg:gem/solidus_api

PACKAGE
Advisory Identifier: GHSA-3mvg-rrrw-m7ph
Advisory Summary

CVE-2020-15109 is a MODERATE (CVSS 5.3) ability to change order address vulnerability (CWE-20: Improper Input Validation) affecting Solidus frontend libraries in the RubyGems ecosystem. The issue involves ability to change order address without triggering address validations in solidus. Remediation is available by upgrading affected packages to version 2.8.6, 2.9.6, 2.10.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/solidus_api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/solidus_api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3mvg-rrrw-m7ph CVE-2020-15109 MODERATE Ability to change order address without triggering address validations in solidus

CVE-2020-15109 at a Glance

CVE Identifier CVE-2020-15109
GHSA Identifier GHSA-3mvg-rrrw-m7ph
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Solidus frontend
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:U/C:N/I:L/A:N).

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

How to Fix CVE-2020-15109

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

solidus_frontend fixed: 2.8.6
Upgrade solidus_frontend to 2.8.6
solidus_frontend fixed: 2.9.6
Upgrade solidus_frontend to 2.9.6
solidus_frontend fixed: 2.10.2
Upgrade solidus_frontend to 2.10.2
solidus_api fixed: 2.8.6
Upgrade solidus_api to 2.8.6
solidus_api fixed: 2.9.6
Upgrade solidus_api to 2.9.6
solidus_api fixed: 2.10.2
Upgrade solidus_api to 2.10.2
Verify Direct and Transitive Dependencies

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

inspect dependencies for solidus_frontend

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15109, inspect your project dependencies for Solidus frontend:

inspect dependencies for solidus_frontend

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

Note: Verify declared build manifests and deployed runtime container environments.

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 Solidus frontend, 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 This vulnerability allows a malicious customer to craft request data with parameters that allow changing the address of the current order without changing the shipment costs associated with the new shipment. All stores with at least two shipping zones and different costs of shipment per zone are impacted. E.g. 1. Store admin configured the store so that there are two zones in US: - East Cost Zone - Shipping Method cost: $1 - West Cost Zone - Shipping Method cost: $10 The attacker user can know that shipping to NY is less expensive than to LA just by testing different addresses in checkout. 2. The attacker user enters any NY shipping address in the address step 3. The attacker user chooses the $1 delivery option 4. The attacker user crafts a request with their real LA address, similar to: ``` // POST #checkout/update: { state: 'payment', order: { ship_address_attributes: { city: 'Los Angeles', ... } } } ``` 5. The attacker user proceeds with checking out with a new address and the $1 shipment costs. Another scenario where this could be dangerous is: > You cannot ship products in some zones and you are relying on Solidus Shipping Method building only to filter out unwanted zones. Malicious users can enter an allowed zone's address and change back to an unwanted one in the payment step by crafting a request with some proper ship_address_attributes. This problem comes from how checkout permitted attributes are structured. We have a single list of attributes that are permitted across the whole checkout, no matter the step that is being submitted. ### Patches A PR has been attached to fix the security concern for each of all the Solidus supported versions following the rules of the [Solidus Security Policy](https://solidus.io/security). ### Workarounds When it's not possible to upgrade to a supported patched version, please use this gist to patch the store: https://gist.github.com/kennyadsl/4618cd9797984cb64f7700a81bda889d

CVE-2020-15109 Affected Solidus frontend Versions

6 component(s)
Fixed Versions:
2.8.62.9.62.10.2
Product / Package Ecosystem Affected Versions Fixed Version
solidus_frontend
RubyGems
< 2.8.6
2.8.6
solidus_frontend
RubyGems
≥ 2.9.0
< 2.9.6
2.9.6
solidus_frontend
RubyGems
≥ 2.10.0
< 2.10.2
2.10.2
solidus_api
RubyGems
< 2.8.6
2.8.6
solidus_api
RubyGems
≥ 2.9.0
< 2.9.6
2.9.6
solidus_api
RubyGems
≥ 2.10.0
< 2.10.2
2.10.2

References

Frequently Asked Questions

What is CVE-2020-15109?
CVE-2020-15109 is a security vulnerability in Solidus frontend involving Ability to change order address without triggering address validations in solidus under CWE-20: Improper Input Validation.
Which Solidus frontend versions are affected?
Affected versions include releases prior to 2.8.6, 2.9.6, 2.10.2 across affected packages: solidus_frontend, solidus_api.
What version fixes CVE-2020-15109?
Upgrading to 2.8.6, 2.9.6, 2.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is solidus_frontend affected?
Yes, solidus_frontend is affected in releases prior to 2.8.6, 2.9.6, 2.10.2. Upgrade your dependency to 2.8.6, 2.9.6, 2.10.2 or later.
Is solidus_api affected?
Yes, solidus_api is affected in releases prior to 2.8.6, 2.9.6, 2.10.2. Upgrade your dependency to 2.8.6, 2.9.6, 2.10.2 or later.
What is the CVSS score of CVE-2020-15109?
CVE-2020-15109 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2020-15109?
CVE-2020-15109 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 RubyGems dependencies for CVE-2020-15109?
Run the dependency tree command: 'inspect dependencies for solidus_frontend'. 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-3mvg-rrrw-m7ph",
  "modified" : "2021-11-19T15:41:33Z",
  "published" : "2020-08-04T22:17:57Z",
  "aliases" : [ "CVE-2020-15109" ],
  "summary" : "Ability to change order address without triggering address validations in solidus",
  "details" : "### Impact\n\nThis vulnerability allows a malicious customer to craft request data with parameters that allow changing the address of the current order without changing the shipment costs associated with the new shipment.\n\nAll stores with at least two shipping zones and different costs of shipment per zone are impacted. \n\nE.g.\n1. Store admin configured the store so that there are two zones in US:\n-  East Cost Zone - Shipping Method cost: $1\n- West Cost Zone - Shipping Method cost: $10\n\nThe attacker user can know that shipping to NY is less expensive than to LA just by testing different addresses in checkout.\n\n2. The attacker user enters any NY shipping address in the address step\n3. The attacker user chooses the $1 delivery option\n4. The attacker user crafts a request with their real LA address, similar to:\n\n```\n// POST #checkout/update:\n\n{\n  state: 'payment',\n  order: {\n    ship_address_attributes: {\n      city: 'Los Angeles',\n      ...\n    }\n  }\n}\n```\n5. The attacker user proceeds with checking out with a new address and the $1 shipment costs.\n\nAnother scenario where this could be dangerous is:\n\n> You cannot ship products in some zones and you are relying on Solidus Shipping Method building only to filter out unwanted zones. Malicious users can enter an allowed zone's address and change back to an unwanted one in the payment step by crafting a request with some proper ship_address_attributes.\n\nThis problem comes from how checkout permitted attributes are structured. We have a single list of attributes that are permitted across the whole checkout, no matter the step that is being submitted.\n\n### Patches\n\nA PR has been attached to fix the security concern for each of all the Solidus supported versions following the rules of the [Solidus Security Policy](https://solidus.io/security).\n\n### Workarounds\n\nWhen it's not possible to upgrade to a supported patched version, please use this gist to patch the store:\n\nhttps://gist.github.com/kennyadsl/4618cd9797984cb64f7700a81bda889d",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "solidus_frontend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.8.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "solidus_frontend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.9.0"
      }, {
        "fixed" : "2.9.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "solidus_frontend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "solidus_api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.8.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "solidus_api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.9.0"
      }, {
        "fixed" : "2.9.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "solidus_api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/solidusio/solidus/security/advisories/GHSA-3mvg-rrrw-m7ph"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15109"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/kennyadsl/4618cd9797984cb64f7700a81bda889d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/solidus_api/CVE-2020-15109.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/solidus_frontend/CVE-2020-15109.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/solidusio/solidus"
  }, {
    "type" : "WEB",
    "url" : "https://solidus.io/blog/2020/07/16/new-releases.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-04T20:54:07Z",
    "nvd_published_at" : "2020-08-04T23:15:00Z"
  }
}