{ "id": "CVE-2021-3882", "sourceIdentifier": "security@huntr.dev", "published": "2021-10-14T09:15:08.427", "lastModified": "2022-10-27T13:04:07.990", "vulnStatus": "Analyzed", "descriptions": [ { "lang": "en", "value": "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." }, { "lang": "es", "value": "LedgerSMB no establece el atributo \"Secure\" en la cookie de autorizaci\u00f3n de sesi\u00f3n cuando el cliente usa HTTPS y el servidor LedgerSMB est\u00e1 detr\u00e1s de un proxy inverso. Al enga\u00f1ar a un usuario para que use una conexi\u00f3n no cifrada (HTTP), un atacante puede ser capaz de obtener los datos de autenticaci\u00f3n capturando el tr\u00e1fico de la red. LedgerSMB versiones 1.8 y m\u00e1s recientes, cambiaron de la autenticaci\u00f3n B\u00e1sica a un uso de la autenticaci\u00f3n con cookies cifradas. Aunque un atacante no puede acceder a la informaci\u00f3n dentro de la cookie, ni a la contrase\u00f1a del usuario, la posesi\u00f3n de la cookie es suficiente para acceder a la aplicaci\u00f3n como el usuario del que se ha obtenido la cookie. Para que el atacante obtenga la cookie, en primer lugar el servidor debe estar configurado para responder a peticiones no cifradas, el atacante debe estar convenientemente posicionado para espiar el tr\u00e1fico de red entre el cliente y el servidor *y* el usuario debe ser enga\u00f1ado para usar tr\u00e1fico HTTP no cifrado. Un control de auditor\u00eda apropiado y la separaci\u00f3n de funciones limitan el impacto de la integridad del vector de ataque. Se insta a usuarios de LedgerSMB 1.8 a que se actualicen a las versiones corregidas conocidas. Los usuarios de LedgerSMB versiones 1.7 o 1.9 no est\u00e1n afectados por esta vulnerabilidad y no necesitan tomar medidas. Como soluci\u00f3n, los usuarios pueden configurar su proxy inverso Apache o Nginx para a\u00f1adir el atributo Secure en el l\u00edmite de la red en lugar de confiar en LedgerSMB. Para Apache, consulte el comando de configuraci\u00f3n \"Header always edit\" en el m\u00f3dulo mod_headers. Para Nginx, consulte el comando de configuraci\u00f3n \"proxy_cookie_flags\"" } ], "metrics": { "cvssMetricV31": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE", "baseScore": 6.8, "baseSeverity": "MEDIUM" }, "exploitabilityScore": 1.6, "impactScore": 5.2 } ], "cvssMetricV30": [ { "source": "security@huntr.dev", "type": "Secondary", "cvssData": { "version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 5.9, "baseSeverity": "MEDIUM" }, "exploitabilityScore": 1.6, "impactScore": 4.2 } ], "cvssMetricV2": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "2.0", "vectorString": "AV:N/AC:H/Au:N/C:P/I:P/A:N", "accessVector": "NETWORK", "accessComplexity": "HIGH", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "NONE", "baseScore": 4.0 }, "baseSeverity": "MEDIUM", "exploitabilityScore": 4.9, "impactScore": 4.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": true } ] }, "weaknesses": [ { "source": "nvd@nist.gov", "type": "Primary", "description": [ { "lang": "en", "value": "CWE-311" } ] }, { "source": "security@huntr.dev", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-614" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:ledgersmb:ledgersmb:1.8.0:-:*:*:*:*:*:*", "matchCriteriaId": "A2CC6F62-AA97-4E51-A8AD-39EA265C0067" } ] } ] } ], "references": [ { "url": "https://github.com/ledgersmb/ledgersmb/commit/c242f5a2abf4b99b0da205473cbba034f306bfe2", "source": "security@huntr.dev", "tags": [ "Patch", "Third Party Advisory" ] }, { "url": "https://huntr.dev/bounties/7061d97a-98a5-495a-8ba0-3a4c66091e9d", "source": "security@huntr.dev", "tags": [ "Exploit", "Third Party Advisory" ] }, { "url": "https://ledgersmb.org/cve-2021-3882-sensitive-non-secure-cookie", "source": "security@huntr.dev", "tags": [ "Broken Link" ] } ] }