CVE-2019-1006 - Improper Authentication

Severity

50%

Complexity

99%

Confidentiality

48%

An authentication bypass vulnerability exists in Windows Communication Foundation (WCF) and Windows Identity Foundation (WIF), allowing signing of SAML tokens with arbitrary symmetric keys, aka 'WCF/WIF SAML Token Authentication Bypass Vulnerability'.

An authentication bypass vulnerability exists in Windows Communication Foundation (WCF) and Windows Identity Foundation (WIF), allowing signing of SAML tokens with arbitrary symmetric keys, aka 'WCF/WIF SAML Token Authentication Bypass Vulnerability'.

CVSS 3.0 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

CVSS 2.0 Base Score 5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:N/I:P/A:N).

Demo Examples

Improper Authentication

CWE-287

The following code intends to ensure that the user is already logged in. If not, the code performs authentication with the user-provided username and password. If successful, it sets the loggedin and user cookies to "remember" that the user has already logged in. Finally, the code performs administrator tasks if the logged-in user has the "Administrator" username, as recorded in the user cookie.


               
}
}
ExitError("Error: you need to log in first");
);
);
DoAdministratorTasks();

Unfortunately, this code can be bypassed. The attacker can set the cookies independently so that the code does not check the username and password. The attacker could do this with an HTTP request containing headers such as:


               
[body of request]

By setting the loggedin cookie to "true", the attacker bypasses the entire authentication check. By using the "Administrator" value in the user cookie, the attacker also gains privileges to administer the software.

Improper Authentication

CWE-287

Overview

Type

Microsoft

First reported 5 years ago

2019-07-15 19:15:00

Last updated 5 years ago

2019-07-19 15:52:00

Affected Software

Microsoft IdentityModel 7.0.0

7.0.0

Microsoft Sharepoint Enterprise Server 2013 Service Pack 1

2013

Microsoft SharePoint Enterprise Server 2016

2016

Microsoft SharePoint Foundation 2010 Service Pack 2

2010

Microsoft SharePoint Foundation 2013 Service Pack 1

2013

Microsoft SharePoint Server 2019

2019

Microsoft Windows 10 1703

1703

Microsoft Windows 10 1709

1709

Microsoft Windows 10 1803

1803

Microsoft Windows 10 1809

1809

Microsoft Windows RT 8.1

Microsoft Windows Server 2008 Service Pack 2

Microsoft Windows Server 2012

Microsoft Windows Server 2016

Microsoft Windows Server 2016 1803

1803

Microsoft Windows Server 2019

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.