Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1ocDhoLTd4NjktNHdtds4AA63y
zcap has incomplete expiration checks in capability chains.
Impact
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. A zcap still cannot be invoked without being able to use the associated private key material.
Patches
@digitalbazaar/zcap
v9.0.1 fixes expiration checking.
Workarounds
A zcap could be revoked at any time.
References
https://github.com/digitalbazaar/zcap/pull/82
Permalink: https://github.com/advisories/GHSA-hp8h-7x69-4wmvJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocDhoLTd4NjktNHdtds4AA63y
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 4 months ago
Updated: 3 months ago
CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Identifiers: GHSA-hp8h-7x69-4wmv, CVE-2024-31995
References:
- https://github.com/digitalbazaar/zcap/security/advisories/GHSA-hp8h-7x69-4wmv
- https://github.com/digitalbazaar/zcap/pull/82
- https://github.com/digitalbazaar/zcap/commit/261eea040109b6e25159c88d8ed49d3c37f8fcfe
- https://github.com/digitalbazaar/zcap/commit/55f8549c80124b85dfb0f3dcf83f2c63f42532e5
- https://nvd.nist.gov/vuln/detail/CVE-2024-31995
- https://github.com/advisories/GHSA-hp8h-7x69-4wmv
Blast Radius: 4.3
Affected Packages
npm:@digitalbazaar/zcap
Dependent packages: 13Dependent repositories: 10
Downloads: 2,637 last month
Affected Version Ranges: < 9.0.1
Fixed in: 9.0.1
All affected versions: 7.0.0, 7.0.1, 7.1.0, 7.2.0, 7.2.1, 7.2.2, 8.0.0, 9.0.0
All unaffected versions: 9.0.1