CVE-2020-15128: October/rain Reliance On Cookies Without Validation Vulnerability
MODERATECVE-2020-15128 is a MODERATE (CVSS 6.1) reliance on cookies without validation vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting October/rain libraries in the Packagist ecosystem. The issue involves reliance on cookies without validation in octobercms. Remediation is available by upgrading affected packages to version 1.0.468.
CVE-2020-15128 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N).
How to Fix CVE-2020-15128
To remediate this vulnerability, upgrade all affected October/rain 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 october/rain to 1.0.468
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for october/rain
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-15128, inspect your project dependencies for October/rain:
inspect dependencies for october/rain
Analyze the terminal output to locate any version of October/rain in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.468), 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-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In October/rain, 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-15128 Affected October/rain Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
october/rain
|
Packagist |
≥ 1.0.319
< 1.0.468
|
1.0.468
|
References
Frequently Asked Questions
What is CVE-2020-15128?
Which October/rain versions are affected?
What version fixes CVE-2020-15128?
Is october/rain affected?
What is the CVSS score of CVE-2020-15128?
What CWE is associated with CVE-2020-15128?
How can I check Packagist dependencies for CVE-2020-15128?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-55mm-5399-7r63",
"modified" : "2021-03-04T18:25:42Z",
"published" : "2020-08-05T14:52:54Z",
"aliases" : [ "CVE-2020-15128" ],
"summary" : "Reliance on Cookies without validation in OctoberCMS",
"details" : "### Impact\nPreviously encrypted cookie values were not tied to the name of the cookie the value belonged to. This meant that certain classes of attacks that took advantage of other theoretical vulnerabilities in user facing code (nothing exploitable in the core project itself) had a higher chance of succeeding. \n\nSpecifically, if your usage exposed a way for users to provide unfiltered user input and have it returned to them as an encrypted cookie (ex. storing a user provided search query in a cookie) they could then use the generated cookie in place of other more tightly controlled cookies; or if your usage exposed the plaintext version of an encrypted cookie at any point to the user they could theoretically provide encrypted content from your application back to it as an encrypted cookie and force the framework to decrypt it for them. \n\n### Patches\nIssue has been patched in Build 468 (v1.0.468).\n\n>**NOTE**: If you are using the cookie session driver, all of your session data will be invalidated. All other session drivers should smoothly upgrade to the changes (although the backend authentication persist cookie will also be invalidated requiring users to login again once their current session expires).\n\n### Workarounds\nApply https://github.com/octobercms/library/commit/28310d4fb336a1741b39498f4474497644a6875c to your installation manually if unable to upgrade to Build 468.\n\n### References\n- https://blog.laravel.com/laravel-cookie-security-releases\n- https://github.com/laravel/framework/compare/4c7d118181d6c7f1f883643702df807ced016c5e...a731824421f9ebc586728ea9c7cff231a249aaa9\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [hello@octobercms.com](mailto:hello@octobercms.com)\n\n### Threat Assessment\nAssessed as Low given that it is not directly exploitable within the core but requires other security vulnerabilities within the application to have an effect and the severity of its effect depends entirely on the severity of those other holes in the application's defences.\n\n### Acknowledgements\n\nThanks to [Takashi Terada of Mitsui Bussan Secure Directions, Inc.](https://www.linkedin.com/in/takeshi-terada-b570a6100/) for finding the original issue in Laravel and @taylorotwell for sharing the report with the October CMS team.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "october/rain"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.319"
}, {
"fixed" : "1.0.468"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/octobercms/october/security/advisories/GHSA-55mm-5399-7r63"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15128"
}, {
"type" : "WEB",
"url" : "https://github.com/octobercms/library/pull/508"
}, {
"type" : "WEB",
"url" : "https://github.com/octobercms/library/commit/28310d4fb336a1741b39498f4474497644a6875c"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-327", "CWE-565" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-07-31T17:44:58Z",
"nvd_published_at" : "2020-07-31T18:15:00Z"
}
}