Potato Vulnerabilities
Summary
This article explores the family of Potato Vulnerabilities, a group of privilege escalation exploits targeting Windows operating systems. These vulnerabilities exploit weaknesses in token handling, impersonation privileges, and authentication protocols, using techniques like NTLM reflection and token manipulation. This article provides an overview of the vulnerabilities, explains the exploitation techniques used, details specific vulnerabilities within the Potato family, and discusses mitigation strategies to defend against these attacks.
Overview of Potato Vulnerabilities
Potato Vulnerabilities are a family of exploits that target token-based weaknesses in Windows operating systems, allowing attackers to escalate privileges from low-level user accounts to high-privilege system accounts. First introduced in 2016 with "Hot Potato" by Stephen Breen, these vulnerabilities have evolved to bypass various security measures implemented by Microsoft. They exploit Windows authentication mechanisms, misconfigured permissions and handling of tokens and delegation protocols. Several of these vulnerabilities remain important in cybersecurity due to their adaptability and continued discovery of new variants.
Exploitation Techniques
Potato Vulnerabilities utilize advanced exploitation techniques to achieve privilege escalation. The most important methods are:
- Token Manipulation: Exploiting Windows access tokens to impersonate higher-privilege users and execute actions with admin-level user accounts.
- NTLM Reflection: Redirecting authentication requests to malicious servers to capture credentials and impersonate users.
- RPC/DCOM Exploitation: Misusing Windows services and protocols, such as Distributed Component Object Model (DCOM), to interact with privileged services and gain elevated access.
- Resource-Based Constrained Delegation (RBCD): Exploiting delegation settings in Active Directory to gain unauthorized access through ticket manipulation.
Specific Potato Vulnerabilities
- Hot Potato: The first Potato vulnerability, introduced in 2016 by Stephen Breen, exploited NetBIOS Name Service (NBNS) spoofing and NTLM reflection to escalate privileges to the system level. It has been patched under CVE-2016-3213.
- Rotten Potato: An evolution of Hot Potato disclosed in 2016, it uses NTLM reflection to trick the "NT Authority\System" account into authenticating to an attacker-controlled endpoint. It has been patched in Windows 10 1809 and later versions.
- Lonely Potato: A variant of Rotten Potato, it replaced meterpreter with API calls for token impersonation, simplifying the process. Released in 2017, it is now deprecated on the same patched versions as Rotten Potato.
- Juicy Potato: Introduced in 2018, this exploit improved upon Rotten Potato by allowing the attacker to specify the CLSID for targeting, enabling greater flexibility. It was patched in Windows 10 1809.
- Ghost Potato: Disclosed in 2019, it bypasses the patched NTLM reflection protections by exploiting the Local Security Authority Subsystem Service (LSASS). It works by delaying NTLM reflection until cached challenges expire. This vulnerability was patched under CVE-2019-1384.
- Sweet Potato: Released in 2020, it is a C# version of Juicy Potato that also targets WinRM services for privilege escalation. It remains unpatched and works on Windows 7 through Windows 10 and Server 2019.
- Rogue Potato: This 2020 vulnerability uses a forged Object Exporter Identifier (OXID) response to trigger privileged authentication to an attacker-controlled listener. It remains unpatched by Microsoft.
- Generic Potato: A 2021 tool that allows users to craft their own exploits based on the Potato family techniques. It uses HTTP and named pipe listeners to exploit NTLM authentication. It is primarily used for Capture The Flag (CTF) activities and remains unpatched.
- Remote Potato: Released in 2021, this exploit uses a cross-protocol relay from RPC to LDAP or HTTP. It bypasses impersonation privileges required by earlier variants. Microsoft patched it in October 2022.
- Juicy Potato NG: A 2022 update of Juicy Potato that bypasses patched CLSIDs using a Kerberos DCOM authentication trick. It remains unpatched and continues to function.
- Cert Potato: Introduced in 2022, it abuses Active Directory Certificate Services (ADCS) to obtain a machine’s Ticket Granting Ticket (TGT) and create a Silver Ticket for domain-level privileges. It remains unpatched.
- Local Potato: Released in 2023, it targets LSASS and swaps NTLM messages to authenticate as a privileged user. It was patched under CVE-2023-21746.
- Coerced Potato: The most recent vulnerability, disclosed in 2023, enhances PrintSpoofer with new RPC call exploits, enabling privilege escalation to the system level. It remains effective on current Windows versions, including Windows 10, 11, and Server 2022.
Mitigation
Mitigating Potato Vulnerabilities requires both vendor updates as well as some security practices:
- Microsoft Security Updates: Regularly apply patches and updates provided by Microsoft to address known vulnerabilities.
- Access Controls: Implement the principle of least privilege to restrict unnecessary elevated permissions.
- Network Monitoring: Use logging and monitoring tools to detect privilege escalation attacks or unauthorized authentication events.
- Patch Management: Make sure that all systems are updated to the latest versions, to decrease the likelihood of being vulnerable to Potato exploits.
These measures enhance system defenses not only against privilege escalation, but also against most other attacks and therefore reduce the impact and threat of Potato Vulnerabilities.
References
- https://jlajara.gitlab.io/Potatoes_Windows_Privesc
- https://foxglovesecurity.com/2016/01/16/hot-potato/
- https://foxglovesecurity.com/2016/09/26/rotten-potato-privilege-escalation-from-service-accounts-to-system/
- https://hideandsec.sh/books/windows-sNL/page/in-the-potato-family-i-want-them-all
- https://decoder.cloud/2017/12/23/the-lonely-potato/
- http://ohpe.it/juicy-potato/
- https://shenaniganslabs.io/2019/11/12/Ghost-Potato.html
- https://www.pentestpartners.com/security-blog/sweetpotato-service-to-system/
- https://decoder.cloud/2020/05/11/no-more-juicypotato-old-story-welcome-roguepotato/
- https://micahvandeusen.com/the-power-of-seimpersonation/
- https://www.sentinelone.com/labs/relaying-potatoes-another-unexpected-privilege-escalation-vulnerability-in-windows-rpc-protocol/
- https://decoder.cloud/2022/09/21/giving-juicypotato-a-second-chance-juicypotatong/
- https://sensepost.com/blog/2022/certpotato-using-adcs-to-privesc-from-virtual-and-network-service-accounts-to-local-system/
- https://decoder.cloud/2023/02/13/localpotato-when-swapping-the-context-leads-you-to-system/
- https://blog.hackvens.fr/articles/CoercedPotato.html
- https://purplesec.us/learn/privilege-escalation-attacks/