GHSA-5fq8-3q2f-4m5g

Suggest an improvement
Source
https://github.com/advisories/GHSA-5fq8-3q2f-4m5g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/01/GHSA-5fq8-3q2f-4m5g/GHSA-5fq8-3q2f-4m5g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5fq8-3q2f-4m5g
Aliases
Published
2020-01-24T19:56:59Z
Modified
2024-09-16T22:06:06.188396Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N CVSS Calculator
  • 4.8 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N CVSS Calculator
Summary
Session key exposure through session list in Django User Sessions
Details

Impact

The views provided by django-user-sessions allow users to terminate specific sessions. The session key is used to identify sessions, and thus included in the rendered HTML. In itself this is not a problem. However if the website has an XSS vulnerability, the session key could be extracted by the attacker and a session takeover could happen.

Patches

Patch is under way.

Workarounds

Remove the session_key from the template.

References

None.

For more information

If you have any questions or comments about this advisory: * Open an issue in Bouke/django-user-sessions * Email us at bouke@haarsma.eu

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-287"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-01-24T19:56:37Z"
}
References

Affected packages

PyPI / django-user-sessions

Package

Name
django-user-sessions
View open source insights on deps.dev
Purl
pkg:pypi/django-user-sessions

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.1

Affected versions

0.*

0.1.0-dev
0.1.0-beta
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4

1.*

1.0.0-beta1
1.0.0
1.1.0
1.1.1
1.2.0
1.3.0
1.3.1
1.4.0
1.5.0
1.5.1
1.5.2
1.5.3
1.6.0
1.7.0