Skip to content
OAuth / SSO Advisory Advanced CVE-2019-1006

WCF/WIF SAML Token Authentication Bypass Vulnerability (CVE-2019-1006)

WCF and WIF failed to properly validate the key used to sign SAML tokens, allowing an attacker to sign a token with an arbitrary symmetric key. This lets an unauthenticated attacker impersonate another user and potentially elevate privileges.

Oleksandr Mirosh Follow

Originally disclosed on Microsoft

Description

An authentication bypass vulnerability exists in Windows Communication Foundation (WCF) and Windows Identity Foundation (WIF), allowing signing of SAML tokens with arbitrary symmetric keys. This vulnerability allows an attacker to impersonate another user, which can lead to elevation of privileges. The vulnerability exists in WCF, WIF 3.5 and above in .NET Framework, WIF 1.0 component in Windows, WIF Nuget package, and WIF implementation in SharePoint. An unauthenticated attacker can exploit this by signing a SAML token with any arbitrary symmetric key. This security update addresses the issue by ensuring all versions of WCF and WIF validate the key used to sign SAML tokens correctly.

FAQ

What do I need to do to update SharePoint? Customers running affected versions of Microsoft SharePoint need to download and install both the applicable SharePoint update and the NuGet package for Microsoft.IdentityModel.dll to patch the vulnerability. See the Security Updates table for links to download the updates.

FAQ

There are two updates for .NET Framework 3.5 installed on Windows 10 version 1809 and Windows Server 2019. How do I know which update I need to install? The security updates for Windows 10 version 1809 and Windows Server 2019 include both .NET Framework 3.5 and 4.7.2 or 4.8. Customers running these versions of Windows 10 need to determine if they are also running .NET Framework 4.7.2 or .NET Framework 4.8. Install the security update that includes that second version of .NET Framework.

.NET Framework

.NET Framework

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Oleksandr Mirosh (@olekmirosh) and Alvaro Munoz (@pwntester) from Micro Focus Fortify. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the SAML token validation logic did not correctly verify that the signing key matched the expected key, allowing tokens signed with arbitrary symmetric keys to be accepted.

Impact

An attacker could impersonate another user, which could lead to elevation of privileges.

What the attacker needed

Unauthenticated attacker; ability to send SAML tokens to the service

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

SAML tokens are used to prove who you are when logging into services. The software that checks these tokens did not verify that the token was signed with the correct secret key, so an attacker could create a fake token with any key and pretend to be someone else.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.