QSearchQSearch

CVE-2021-3882

6.8 MEDIUM

LedgerSMB does not set the 'Secure' attribute on the session authorization cookie when the client uses HTTPS and the LedgerSMB server is ...

Published: 2021-10-14 · Last updated: 2026-06-17

Severity and scoring

CVSS
6.8 MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE
CWE-311, CWE-614

Affected products

VendorProduct
ledgersmbledgersmb

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.

Source: NVD

References

Related CVEs

Same vendor

  • CVE-2021-3731 LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking' (5.9 MEDIUM)
  • CVE-2021-3694 LedgerSMB does not sufficiently HTML-encode error messages sent to the browser (8.2 HIGH)
  • CVE-2021-3693 LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM (8.8 HIGH)

Same CWE

  • CVE-2026-53661 Boruta is a standalone authorization server that aims to implement OAuth 2.0 and Openid Connect up to decentralized identity specifications
  • CVE-2026-11956 A vulnerability was determined in TwiN gatus 5.36.0 (3.7 LOW)
  • CVE-2026-53442 Jenkins 2.567 and earlier, LTS 2.555.2 and earlier does not encrypt secrets from POST config.xml submissions before storing them in job c... (5.3 MEDIUM)
  • CVE-2026-46398 HAX CMS helps manage microsite universe with PHP or NodeJs backends
  • CVE-2025-52608 HCL iControl was affected by Missing Cookie Attributes vulnerability (3.1 LOW)