CVE-2021-3882
LedgerSMB Cookie Hijacking Vulnerability
Description
LedgerSMB does not set the 'Secure' attribute on the session authorization cookie when the client uses HTTPS and the LedgerSMB server is behind a reverse proxy. By tricking a user to use an unencrypted connection (HTTP), an attacker may be able to obtain the authentication data by capturing network traffic. LedgerSMB 1.8 and newer switched from Basic authentication to using cookie authentication with encrypted cookies. Although an attacker can't access the information inside the cookie, nor the password of the user, possession of the cookie is enough to access the application as the user from which the cookie has been obtained. In order for the attacker to obtain the cookie, first of all the server must be configured to respond to unencrypted requests, the attacker must be suitably positioned to eavesdrop on the network traffic between the client and the server *and* the user must be tricked into using unencrypted HTTP traffic. Proper audit control and separation of duties limit Integrity impact of the attack vector. Users of LedgerSMB 1.8 are urged to upgrade to known-fixed versions. Users of LedgerSMB 1.7 or 1.9 are unaffected by this vulnerability and don't need to take action. As a workaround, users may configure their Apache or Nginx reverse proxy to add the Secure attribute at the network boundary instead of relying on LedgerSMB. For Apache, please refer to the 'Header always edit' configuration command in the mod_headers module. For Nginx, please refer to the 'proxy_cookie_flags' configuration command.
INFO
Published Date :
Oct. 14, 2021, 9:15 a.m.
Last Modified :
Feb. 5, 2024, 5:14 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.2
Exploitability Score :
1.6
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-2021-3882
.
URL | Resource |
---|---|
https://github.com/ledgersmb/ledgersmb/commit/c242f5a2abf4b99b0da205473cbba034f306bfe2 | Patch Third Party Advisory |
https://huntr.dev/bounties/7061d97a-98a5-495a-8ba0-3a4c66091e9d | Exploit Third Party Advisory |
https://ledgersmb.org/cve-2021-3882-sensitive-non-secure-cookie | Broken Link |
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-2021-3882
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-3882
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]
Feb. 05, 2024
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:ledgersmb:ledgersmb:1.8.0:-:*:*:*:*:*:* OR *cpe:2.3:a:ledgersmb:ledgersmb:*:*:*:*:*:*:*:* versions from (including) 1.8.0 up to (excluding) 1.8.22 -
Reanalysis by [email protected]
Oct. 27, 2022
Action Type Old Value New Value -
Initial Analysis by [email protected]
Oct. 20, 2021
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:H/Au:N/C:P/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N Changed Reference Type https://github.com/ledgersmb/ledgersmb/commit/c242f5a2abf4b99b0da205473cbba034f306bfe2 No Types Assigned https://github.com/ledgersmb/ledgersmb/commit/c242f5a2abf4b99b0da205473cbba034f306bfe2 Patch, Third Party Advisory Changed Reference Type https://huntr.dev/bounties/7061d97a-98a5-495a-8ba0-3a4c66091e9d No Types Assigned https://huntr.dev/bounties/7061d97a-98a5-495a-8ba0-3a4c66091e9d Exploit, Third Party Advisory Changed Reference Type https://ledgersmb.org/cve-2021-3882-sensitive-non-secure-cookie No Types Assigned https://ledgersmb.org/cve-2021-3882-sensitive-non-secure-cookie Broken Link Added CWE NIST CWE-311 Added CPE Configuration OR *cpe:2.3:a:ledgersmb:ledgersmb:1.8.0:-:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-3882
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-2021-3882
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.18 }} 0.02%
score
0.55544
percentile