Vulnerabilities in pkg:gem/solidus_api
PACKAGECVE-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.
pkg:gem/solidus_api
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
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).
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.
Upgrade solidus_frontend to 2.8.6
Upgrade solidus_frontend to 2.9.6
Upgrade solidus_frontend to 2.10.2
Upgrade solidus_api to 2.8.6
Upgrade solidus_api to 2.9.6
Upgrade solidus_api to 2.10.2
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
CVE-2020-15109 Affected Solidus frontend Versions
6 component(s)| 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?
Which Solidus frontend versions are affected?
What version fixes CVE-2020-15109?
Is solidus_frontend affected?
Is solidus_api affected?
What is the CVSS score of CVE-2020-15109?
What CWE is associated with CVE-2020-15109?
How can I check RubyGems dependencies for CVE-2020-15109?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}