Insufficient Session Expiration Affecting @digitalbazaar/zcap package, versions <9.0.1
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-DIGITALBAZAARZCAP-6595954
- published 11 Apr 2024
- disclosed 10 Apr 2024
- credit Unknown
Introduced: 10 Apr 2024
CVE-2024-31995 Open this link in a new tabHow to fix?
Upgrade @digitalbazaar/zcap
to version 9.0.1 or higher.
Overview
@digitalbazaar/zcap is an Authorization Capabilities reference implementation.
Affected versions of this package are vulnerable to Insufficient Session Expiration due to incomplete expiration checks in capability chains. When invoking a capability with a chain depth of 2, i.e., it is delegated directly from the root capability, the expires
property is not properly checked against the current date or other date
param. This can allow invocations outside of the original intended time period. However, a zcap still cannot be invoked without being able to use the associated private key material.
Workaround
A zcap could be revoked at any time.