Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

[R1] Microsoft Windows 10 lsass.exe Empty SID Lookup Handling Remote DoS

Medium

Synopsis

While using Nessus for routine auditing, a customer discovered a case where their Nessus configuration caused a credentialed scan to crash a Windows 10 host. When Nessus performed a check that queries for a blank value in a user right, Windows would crash. During evaluation of the issue, Tenable engineers determined that this was not merely a one-off case that led to a local denial of service, rather it was a more severe vulnerability that can allow a remote unauthenticated attacker to crash the host, depending on the configuration.

The issue is in the LsapLookupSids() function of the lsasrv.dll library. Inside this function, LocalAlloc() is called to allocate a block of memory based on the number of SIDs passed to the function. When zero SIDs are passed to the function, LocalAlloc() tries to allocate zero bytes, but it still returns a non-null buffer pointer, and the memory pointed by that pointer can contain non-zero bytes. Later, when the buffer is freed with LocalFree(), dynamically allocated data structures associated with it are also freed. Below shows the function checks if a pointer at offset 4 of the buffer is null and attempts to free it if it is non-null. Because the pointer at offset 4 is non-null, pointing to a location that is not allocated by LocalAlloc(), it passes the NULL pointer check, and the function tries to free both the buffer and the buffer at offset 4. Because LocalFree() is passed with an invalid memory block (i.e., 0x80000), it eventually results in a null pointer dereference.

This can be reached remotely, and a reliable remote denial of service condition exists. Depending on the configuration of the Windows 10 host, this will either require authentication or allow an unauthenticated attacker to carry out the attack. If the following configuration options are set, an attack does not require authentication:

  1. Network access: Named pipes that can be accessed anonymously -> lsarpc
  2. Network access: Restrict anonymous access to Named Pipes and Shares -> Disabled
  3. HKLM\SYSTEM\CurrentControlSet\Control\Lsa\TurnOffAnonymousBlock (DWORD) -> 1
  4. Network Access: Allow anonymous SID/Name translation -> Enabled

If any of these configuration options are not present, then the attack would require authentication.

Tenable only performed a quick evaluation of this issue before reporting it to Microsoft. Once reported, the MSRC team did more digging and determined that in addition to a remote DoS, it could lead to local privilege escalation as well, as the issue "appears to be calling free on invalid memory hence resulting in local EOP".

Solution

Microsoft has released patches for Windows 10 to address this issue. Do that Patch Tuesday thing to auto-update and mitigate this issue.

Disclosure Timeline

2015-12-09 - Vendor Informed via [email protected]
2015-12-10 - Vendor confirms receipt, assigns MSRC Case 31979 TRK:0001002465
2015-12-11 - Vendor requests NASL PoC
2015-12-13 - Tenable sends PoC and PCAP (it happened!)
2015-12-15 - Vendor confirms and reproduces issue, finishing investigation.
2016-02-17 - Ping vendor for update
2016-02-29 - Vendor confirms they can reproduce, pursuing a fix
2016-03-09 - Completed investigation, patch in next month's Patch Tuesday
2016-04-12 - Vendor releases MS16-046 / MSKB 3148538 / CVE-2016-0135, calling it LPE not DoS, credits wrong person
2016-04-12 - Ping vendor for creditee fix and clarity on impact
2016-04-13 - Vendor fixes creditee, gives a brief explanation for LPE vs Remote DoS

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Try for Free Buy Now

Try Tenable.io

FREE FOR 30 DAYS

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Sign up now.

Buy Tenable.io

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

65 assets

$2,275

Buy Now

Try for Free Buy Now

Try Nessus Professional Free

FREE FOR 7 DAYS

Nessus® is the most comprehensive vulnerability scanner on the market today. Nessus Professional will help automate the vulnerability scanning process, save time in your compliance cycles and allow you to engage your IT team.

Buy Nessus Professional

Nessus® is the most comprehensive vulnerability scanner on the market today. Nessus Professional will help automate the vulnerability scanning process, save time in your compliance cycles and allow you to engage your IT team.

Buy a multi-year license and save. Add Advanced Support for access to phone, email, community and chat support 24 hours a day, 365 days a year. Full details here.

Try for Free Buy Now

Try Tenable.io Web Application Scanning

FREE FOR 30 DAYS

Enjoy full access to our latest web application scanning offering designed for modern applications as part of the Tenable.io platform. Safely scan your entire online portfolio for vulnerabilities with a high degree of accuracy without heavy manual effort or disruption to critical web applications. Sign up now.

Buy Tenable.io Web Application Scanning

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

5 FQDNs

$3,578

Buy Now

Try for Free Contact Sales

Try Tenable.io Container Security

FREE FOR 30 DAYS

Enjoy full access to the only container security offering integrated into a vulnerability management platform. Monitor container images for vulnerabilities, malware and policy violations. Integrate with continuous integration and continuous deployment (CI/CD) systems to support DevOps practices, strengthen security and support enterprise policy compliance.

Buy Tenable.io Container Security

Tenable.io Container Security seamlessly and securely enables DevOps processes by providing visibility into the security of container images – including vulnerabilities, malware and policy violations – through integration with the build process.

Learn More about Industrial Security

Get a Demo of Tenable.sc

Please fill out the form below with your contact information and a sales representative will contact you shortly to schedule a demo. You may also include a short comment (limited to 255 characters). Please note that fields with asterisks (*) are mandatory.

Try for Free Contact Sales

Try Tenable Lumin

FREE FOR 30 DAYS

Visualize and explore your Cyber Exposure, track risk reduction over time and benchmark against your peers with Tenable Lumin.

Buy Tenable Lumin

Contact a Sales Representative to see how Lumin can help you gain insight across your entire organization and manage cyber risk.