SciTokens
SciTokens: Authorization Bypass via Path Traversal in Scope Validation
SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.7, the Enforcer is vulnerable to a path traversal attack where an attacker can use dot-dot (..) in the scope claim of a token to escape the intended directory restriction. This occurs because the library normalizes both the authorized path (from the token) and the requested path (from the application) before comparing them using startswith. This issue has been patched in version 1.9.7.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.1high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
scitokens scitokens
- < 1.9.7
Fixed in 1.9.7
Mitigation
Upgrade scitokens to 1.9.7 or later.
References
- Vendor advisory github.com/scitokens/scitokens/security/adviso…
- Patch github.com/scitokens/scitokens/pull/230
- Patch github.com/scitokens/scitokens/commit/2d1cc9e4…
1 more
- Release notes github.com/scitokens/scitokens/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.