{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-3882 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-3882 is a medium-severity vulnerability in ledgersmb/ledgersmb, published on 14 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-3882 and fix it if it is affected.\n\nWhat it is: CVE-2021-3882 is a medium-severity vulnerability in ledgersmb/ledgersmb, published on 14 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-3882 in the wild and no public exploit code.\n\nAffected product: ledgersmb/ledgersmb. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-3882/ (Markdown: https://insights.sbomify.com/CVE-2021-3882/index.md)","id":"CVE-2021-3882","markdown":"https://insights.sbomify.com/CVE-2021-3882/index.md","name":"CVE-2021-3882","record":{"aliases":["GHSA-q34c-v76q-8jx6","UBUNTU-CVE-2021-3882"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"LedgerSMB accounting software","requires_auth":"none","summary":"Attackers can steal session cookies via HTTP traffic if the server is behind a reverse proxy without Secure attribute, leading to account takeover.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"ledgersmb","vendor":"ledgersmb"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-311","name":"Missing Encryption of Sensitive Data"},{"id":"CWE-614","name":"Sensitive Cookie in HTTPS Session Without 'Secure' Attribute"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Sensitive Cookie in HTTPS Session Without 'Secure' Attribute in ledgersmb/ledgersmb","id":"CVE-2021-3882","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2021-3883"},"packages":[],"prev":{"headline":"Out-of-bounds Read in bfabiszewski/libmobi","id":"CVE-2021-3881"},"products":["ledgersmb/ledgersmb"],"published":"2021-10-14","related":[{"cvss_score":10,"headline":"Auth bypass in n/a","id":"CVE-2007-3907","kev_date_added":null,"published":"2007-07-19"},{"cvss_score":10,"headline":"Path traversal in n/a","id":"CVE-2007-1329","kev_date_added":null,"published":"2007-03-07"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2018-9246","kev_date_added":null,"published":"2018-06-08"},{"cvss_score":9,"headline":"Auth bypass in n/a","id":"CVE-2007-1437","kev_date_added":null,"published":"2007-03-13"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2008-4077","kev_date_added":null,"published":"2008-09-15"},{"cvss_score":7.5,"headline":"Privilege escalation through CSRF attack on 'setup.pl'","id":"CVE-2024-23831","kev_date_added":null,"published":"2024-02-02"},{"cvss_score":7.5,"headline":"Missing authorization in n/a","id":"CVE-2007-1923","kev_date_added":null,"published":"2007-04-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["ledgersmb"]},"summary":"Attackers can steal session cookies via HTTP traffic if the server is behind a reverse proxy without Secure attribute, leading to account takeover.","url":"https://insights.sbomify.com/CVE-2021-3882/"}