> ## Documentation Index
> Fetch the complete documentation index at: https://rootea.es/llms.txt
> Use this file to discover all available pages before exploring further.

# NoPac (CVE-2021-42278 / CVE-2021-42287)

> Bug doble: (1) un usuario raso puede crear una machine account y renombrar sAMAccountName a uno existente (DC01$ → DC01); (2) durante S4U2Self, KDC busc…

<p className="glossary-answer">Bug doble: (1) un usuario raso puede crear una machine account y renombrar sAMAccountName a uno existente (DC01$→ DC01); (2) durante S4U2Self, KDC busca por sAMAccountName sin$ y emite ticket como el DC.</p>

**Categoría:** [Active Directory · Vectores avanzados](/glosario)

🎯 **Trinchera** — Bug doble: (1) un usuario raso puede crear una
machine account y renombrar `sAMAccountName` a uno existente
(`DC01$ → DC01`); (2) durante S4U2Self, KDC busca por sAMAccountName
sin `$` y emite ticket como el DC. Resultado: Domain Admin desde
cualquier user.

🔗 **Kill chain** — Requisito: cualquier usuario + `MachineAccountQuota>0`.
Salida: SYSTEM en DC.

📡 **Huella defensiva** — Event ID 4741 (computer created) seguido
de 4781 (account name changed) hacia un nombre admin existente.

⚠️ **Falso amigo** — Dos CVEs distintos pero se explotan juntos.
Algunos parches sólo cubren uno.

🛡️ **Remediación** — Patch noviembre 2021; `MachineAccountQuota=0`;
auditar 4741+4781 en cadena.

```bash theme={null}
noPac.py -dc-ip 10.0.0.10 corp.local/user:Pass -dump
```

***

← [Volver al glosario completo](/glosario)

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"DefinedTerm","name":"NoPac (CVE-2021-42278 / CVE-2021-42287)","description":"Bug doble: (1) un usuario raso puede crear una machine account y renombrar sAMAccountName a uno existente (DC01$ → DC01); (2) durante S4U2Self, KDC busca por sAMAccountName sin $ y emite ticket como el DC.","inDefinedTermSet":{"@type":"DefinedTermSet","name":"Glosario táctico de pentesting","url":"https://rootea.es/glosario"},"url":"https://rootea.es/glosario/nopac-cve-2021-42278-cve-2021-42287"}`}
</script>

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https://rootea.es"},{"@type":"ListItem","position":2,"name":"Glosario táctico","item":"https://rootea.es/glosario"},{"@type":"ListItem","position":3,"name":"NoPac (CVE-2021-42278 / CVE-2021-42287)","item":"https://rootea.es/glosario/nopac-cve-2021-42278-cve-2021-42287"}]}`}
</script>

*Última actualización: 2026-06-11*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.