Medium, CVSS 6.3PyPIAmendedPublished
Taipy has a Session Cookie without Secure and HTTPOnly flags
CVE-2024-47833 · GHSA-r3jq-4r5c-j9hp
- Affected
- PyPI taipy <= 3.1.1
- Fixed in
- 4.0.0· Vendor fix available
- Issue
- Session cookie is without Secure and HTTPOnly flags. Details Please take a look at this part of code (PoC screenshot) or check code directly (provided in Occurrences section below) Occurrences: https://github.com/Avaiga/taipy/blob/develop/frontend/taipy-gui/src/components/Taipy/Navigate.tsx#L67 Proposed remediation: add Secure and HTTPOnly flags for cookies. It could be like this: document.cookie = tprh=${tprh};path=/;Secure;HttpOnly;; PoC Screenshot: Impact Secure: This flag indicates that the cookie should only be sent over secure HTTPS connections. Without this flag, the cookie will be sent over both HTTP and HTTPS connections, which could expose it to interception or tampering if the connection is not secure. HttpOnly: This flag prevents the cookie from being accessed by client-side JavaScript. It helps mitigate certain types of attacks, such as cross-site scripting (XSS), by preventing malicious scripts from accessing the cookie's value. References CWE-614: Sensitive…
Recommended action: Upgrade to 4.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.