From CVE-2022-33679 to Unauthenticated Kerberoasting
A Kerberos encryption downgrade vulnerability (CVE-2022-33679) allows an unauthenticated attacker to obtain a ticket-granting ticket and session key for accounts with pre-authentication disabled. The author extended the attack to perform unauthenticated Kerberoasting, extracting service ticket hashes for offline cracking.
Published on horizon3.ai
On September 13, 2022, a new Kerberos vulnerability was published on the Microsoft Security Response Center’s security site. It’s labeled as a Windows Kerberos Elevation of Privilege vulnerability and given the CVE ID CVE-2022-33679.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could obtain service ticket hashes for accounts with SPNs and crack them offline to recover passwords, potentially leading to lateral movement and privilege escalation.
What the attacker needed
Account with pre-authentication disabled; Network access to the KDC
The fix
The attack can be mitigated by ensuring pre-authentication is enabled for all accounts, disabling the RC4-MD4 encryption algorithm, and enforcing Kerberos Armoring (FAST).
How it was found
- Identify a user account with pre-authentication disabled.
- Send an AS-REQ to the KDC for that user, forcing the use of RC4-MD4 encryption.
- Receive the AS-REP and brute-force the session key byte by byte.
- Use the recovered session key and TGT to request a service ticket (ST) from the TGS.
- Use the ST to enumerate Service Principal Names (SPNs) via GetUserSPNs.py.
- Request new TGS-REPs for each SPN and extract the encrypted service ticket hashes for offline cracking.
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 write-up has not been written yet. The Original tab links to the source.
Kerberos is a system that lets users prove who they are in a Windows network. Normally, you need a password to get a special ticket that lets you access services. This bug lets an attacker get that ticket without any password if an account is set up in a certain insecure way, and then use it to grab other service tickets that can be cracked offline to find passwords.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.