CVE-2022-39284
CodeIgniter Cookie Exposure Vulnerability
Description
CodeIgniter is a PHP full-stack web framework. In versions prior to 4.2.7 setting `$secure` or `$httponly` value to `true` in `Config\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`. As a result cookie values are erroneously exposed to scripts. It should be noted that this vulnerability does not affect session cookies. Users are advised to upgrade to v4.2.7 or later. Users unable to upgrade are advised to manually construct their cookies either by setting the options in code or by constructing Cookie objects. Examples of each workaround are available in the linked GHSA.
INFO
Published Date :
Oct. 6, 2022, 8:15 p.m.
Last Modified :
July 11, 2023, 8:51 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
1.4
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-39284
.
URL | Resource |
---|---|
https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie | Technical Description Third Party Advisory |
https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie | Technical Description Third Party Advisory |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies | Technical Description Third Party Advisory |
https://github.com/codeigniter4/CodeIgniter4/issues/6540 | Exploit Issue Tracking Third Party Advisory |
https://github.com/codeigniter4/CodeIgniter4/pull/6544 | Patch Third Party Advisory |
https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp | Mitigation Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-39284
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-39284
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Jul. 11, 2023
Action Type Old Value New Value Added CWE NIST CWE-732 -
Initial Analysis by [email protected]
Oct. 11, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N Changed Reference Type https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie No Types Assigned https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie Technical Description, Third Party Advisory Changed Reference Type https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie No Types Assigned https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie Technical Description, Third Party Advisory Changed Reference Type https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies No Types Assigned https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies Technical Description, Third Party Advisory Changed Reference Type https://github.com/codeigniter4/CodeIgniter4/issues/6540 No Types Assigned https://github.com/codeigniter4/CodeIgniter4/issues/6540 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/codeigniter4/CodeIgniter4/pull/6544 No Types Assigned https://github.com/codeigniter4/CodeIgniter4/pull/6544 Patch, Third Party Advisory Changed Reference Type https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp No Types Assigned https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp Mitigation, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (excluding) 4.2.7 -
CVE Modified by [email protected]
Oct. 11, 2022
Action Type Old Value New Value Removed Reference https://www.cve.org/CVERecord?id=CVE-2022-39284 [No Types Assigned] -
CVE Modified by [email protected]
Oct. 11, 2022
Action Type Old Value New Value Added Reference https://www.cve.org/CVERecord?id=CVE-2022-39284 [No Types Assigned] Added CWE GitHub, Inc. CWE-665 -
CVE Modified by [email protected]
Oct. 07, 2022
Action Type Old Value New Value Removed CWE GitHub, Inc. CWE-665
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-39284
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-39284
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.08 }} -0.00%
score
0.31128
percentile