GHSA-4v55-cpmv-3vcm
CoreWCF: WS-Security Reference DigestMethod Algorithm-Suite Bypass
Quick fix
GHSA-4v55-cpmv-3vcm — CoreWCF.Primitives: upgrade to the fixed version with the command below.
dotnet add package CoreWCF.Primitives --version 1.8.1Details
### Impact CoreWCF’s WS-Security 1.0 receive pipeline validates the `SignatureMethod` of an incoming `ds:SignedInfo` against the configured `SecurityAlgorithmSuite`, but does not validate the `DigestMethod` declared on each `ds:Reference`. As a result, a sender can populate `ds:SignedInfo` with `SignatureMethod` values the suite accepts (for example rsa-sha256 under Basic256Sha256) while declaring a per-reference `DigestMethod` the suite rejects (for example http://www.w3.org/2000/09/xmldsig#sha1). The signature is then verified where it permits SHA-1 digests, and the message is accepted.
### Patches Fixed in CoreWCF v1.8.1 and v1.9.1
### Workarounds None
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.8.1dotnet add package CoreWCF.Primitives --version 1.8.11.9.0Fixed in: 1.9.1dotnet add package CoreWCF.Primitives --version 1.9.1