Windows CryptoAPI Spoofing Vulnerability
Microsoft / Windows CryptoAPI
IntelDirective reviewed a vendor security update for Windows CryptoAPI. The issue is classified as spoofing vulnerability; technical root-cause and patch evidence are available according to the advisory access tier.
Evidence coverage
What this advisory establishes
Availability reflects published evidence, not a generic product promise.
Decision brief
Risk and impact
Successful exploitation could allow an attacker to misrepresent trusted identity or content.
Patch delta
What changed
ChainGetSubjectStatusThe patch modifies ChainGetSubjectStatus in Windows CryptoAPI (crypt32.dll) to add validation of public key parameters and bytes when verifying certificate chain trust. In the old code, when the issuer flag bit 2 was set, the function only compared values at offsets 45/46 and 43/44 to determine trust. The new code restructures this: when bit 2 is set, it calls ChainComparePublicKeyParametersAndBytes to compare stored public key parameters (offsets +47, +48 on the subject) against the issuer's data (at issuer structure offsets +104 and +120). If the comparison returns a positive value, a secondary CryptVerifyCertificateSignatureEx call is made with dwFlags=0 and pvExtra=NULL (contrasting with the primary call that uses dwFlags=9). If this secondary verification fails, ChainLogMSRC54294Error is called. Additionally, the new code adds logic to extract, allocate, and store the issuer's public key parameters and bytes using ChainIsNullOrNoParameters, PkiAlloc, memcpy_0, and PkiDefaultCryptFree into the subject object at offsets +47 and +48, enabling the subsequent comparison in the bit-2 branch.
Trigger to impact
Root-cause path
ChainGetSubjectStatus
ChainComparePublicKeyParametersAndBytes to explicitly compare these values, and performs a secondary signature verification (with different flags than the primary call) to detect certificates that might pass the initial verification but use manipulated parameters. The function name ChainLogMSRC54294Error directly references Microsoft's internal tracking identifier, confirming this is the targeted fix. The nature of the vulnerability — involving public key parameter manipulation — is consistent with the known CVE-2020-0601 attack vector, though the pseudocode itself does not contain ECC-specific types or OIDs.
Trigger-path evidence is partial. The published research contains some reachability evidence, but not a complete validated request-to-function trace.
Remediation
Patch and defender actions
Apply the vendor security update and validate the affected component version.
crypt32.dllEvidence ledger
Patch provenance
SHA-256 cee203f588cd2bf42b...Publication record
Research timeline
- Finding accepted by IntelDirective Research.