4.3
MEDIUM
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.

Remotely Exploitable :

Yes !

Impact Score :

1.4

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2022-39284 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Codeigniter codeigniter
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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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:

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

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability