Microsoft Exchange Server Elevation of Privilege Vulnerability (CVE-2018-8581)
Exchange Server allowed an attacker who could intercept and forward an authentication request to impersonate any other Exchange user. The flaw depended on a registry setting that enabled NTLM authentication over the loopback adapter, so removing that value made the attack unexploitable.
Anonymous working with Trend Micro's Zero Day Initiative Follow
Originally disclosed on Microsoft
Description
An elevation of privilege vulnerability exists in Microsoft Exchange Server. An attacker who successfully exploited this vulnerability could attempt to impersonate any other user of the Exchange server. To exploit the vulnerability, an attacker would need to execute a man-in-the-middle attack to forward an authentication request to a Microsoft Exchange Server, thereby allowing impersonation of another Exchange user. To address this vulnerability, a registry value which enables NTLM authentication on the network loopback adapter needs to be removed. Future cumulative updates will ensure that this registry setting is configured correctly during installation of the cumulative update.
FAQ
A registry value DisableLoopbackCheck exists under the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa. The vulnerability described by CVE-2018-8581 is unexploitable if the DisableLoopbackCheck registry value is removed. To remove the registry value, type the following command in an elevated CMD window: reg delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa /v DisableLoopbackCheck /f Neither a restart of the operating system nor the Exchange Server is required after the removal of this registry value. Note : It is important to remove only the DisableLoopbackCheck value. Care should be taken to not remove the Lsa key.
Microsoft Exchange Server
Microsoft Exchange Server
Microsoft
Microsoft
Customer Action Required
Yes
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 server accepted NTLM authentication arriving over the loopback adapter, which let a forwarded authentication request be treated as a valid login for another user.
Impact
An attacker able to run a man-in-the-middle attack could impersonate any other user of the Exchange server; removing the registry value makes the vulnerability unexploitable.
What the attacker needed
Man-in-the-middle position on traffic; registry value left in place
The fix
The registry value enabling NTLM authentication on the loopback adapter should be deleted, and later cumulative updates were to set this correctly during installation.
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.
Exchange is Microsoft's email server. NTLM is an older way computers prove who they are to each other. Here the server trusted such proof even when it arrived over its own internal loopback connection, so someone sitting in the middle of network traffic could pass a captured login along and be treated as a different user.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.