GHSA-xmh9-rg6f-j3mr

Suggest an improvement
Source
https://github.com/advisories/GHSA-xmh9-rg6f-j3mr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-xmh9-rg6f-j3mr/GHSA-xmh9-rg6f-j3mr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xmh9-rg6f-j3mr
Published
2021-03-12T22:39:01Z
Modified
2021-03-10T04:01:48Z
Summary
Verification flaw in Solid identity-token-verifier
Details

Impact

Severity

Any Pod on a Solid server using a vulnerable version of the identity-token-verifier library is at risk of a spoofed Demonstration of Proof-of-Possession (DPoP) token binding. This vulnerability could give total and complete access to a targeted Pod.

Summary

A verification flaw in the implementation of the identity token verifier library (https://github.com/solid/identity-token-verifier) allows DPoP proofs to be spoofed.

DPoP proofs are used to bind access tokens to a private key meant to be in sole possession of a specific user. Instead of verifying against the hash of an embedded public key, the library instead verifies against a field that an attacker can modify to spoof another user’s DPoP.

A stolen DPoP proof, when used in the right context, therefore allows the rebinding of a DPoP-bound access token. Any attacker in possession of a targeted access token could build an attack environment to replay it on any Pod service with this vulnerability.

Patches

A new version 0.5.2 of identity-token-verifier fixes the verification: https://github.com/solid/identity-token-verifier/blob/7e18d86d65ee681e8ae912b6a032a1bae3cae570/src/lib/DPoP.ts#L25-L35

Workarounds

None

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "cwe_ids":  [
        "CWE-290"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-03-10T04:01:48Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / @solid/identity-token-verifier

Package

Name
@solid/identity-token-verifier
View open source insights on deps.dev
Purl
pkg:npm/%40solid/identity-token-verifier

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.5.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-xmh9-rg6f-j3mr/GHSA-xmh9-rg6f-j3mr.json"