ArgoCD Exploitation Skill
攻击大类:C09 Web应用漏洞利用
Product: Argo CD (declarative GitOps continuous delivery tool for Kubernetes)
Default ports: 80/443 (Web UI), 8080 (Server), 6379 (Redis)
Fingerprints: page title "Argo CD", /api/v1/version returns version information
Default credentials: admin / auto-generated initial password
FOFA: app="Argo-CD" | Shodan: http.title:"Argo CD"
Vulnerability Overview
| CVE |
Affected versions |
Type |
Condition |
Impact |
| CVE-2024-31989 |
<2.11.5 |
Redis cache poisoning → K8s takeover |
Redis unauthenticated |
Critical (9.1) |
| CVE-2022-29165 |
<2.3.1 |
SSO authentication bypass |
OIDC SSO configured |
High (8.8) |
| CVE-2023-22482 |
multiple versions |
Redis information disclosure |
Redis unauthenticated |
High (7.5) |
| CVE-2024-40638 |
multiple versions |
Webhook SSRF |
authenticated user |
High (7.2) |
| Default credentials |
all versions |
initial admin password |
obtain the initial password |
Critical |
Exploitation Decision Tree
1. Identify ArgoCD → /api/v1/version
2. Unauthorized API → /api/v1/applications, /api/v1/clusters
3. CVE-2024-31989 (prefer) → Redis cache poisoning → cluster takeover
4. Default credentials → admin + initial password → full control
5. CVE-2022-29165 (SSO environment) → redirect_uri bypass
6. CVE-2024-40638 → Webhook SSRF
7. Post-authentication exploitation → malicious Application / manifest injection / privilege bypass
Exploit Chain Priority
1. Redis unauthenticated → CVE-2024-31989 cache poisoning → K8s cluster takeover
2. Default credentials / weak credentials → full ArgoCD control
3. Unauthorized API → application/cluster/repository information disclosure
4. CVE-2022-29165 → SSO authentication bypass
5. CVE-2024-40638 → Webhook SSRF → internal service probing
6. Authenticated → create malicious Application → privileged Pod deployment
Common Endpoint Quick Reference
| Endpoint |
Method |
Purpose |
Auth |
/api/v1/version |
GET |
version information |
not required |
/api/v1/applications |
GET |
application list |
optional |
/api/v1/clusters |
GET |
cluster list |
optional |
/api/v1/repositories |
GET |
repository list |
optional |
/api/v1/account |
GET |
account information |
optional |
/auth/login |
GET |
login page |
not required |
Redis 6379 |
- |
cache service |
no password by default |
Detailed Reference
- Detection scripts and post-exploitation techniques - unauthorized API detection, comprehensive scanning scripts, post-authentication exploitation techniques
1---2name: argocd-tactics3description: |4 ArgoCD post-exploitation methodology: Redis cache poisoning cluster takeover, SSO authentication bypass, unauthorized API enumeration, malicious Application deployment, Webhook SSRF, default credential abuse.5 Must use this skill when the user mentions ArgoCD vulnerabilities, ArgoCD exploitation, ArgoCD RCE, ArgoCD Redis, ArgoCD unauthorized access, ArgoCD detection, or GitOps security.6 Also applies when the user mentions K8s continuous delivery, Kubernetes GitOps, ArgoCD cluster takeover, ArgoCD cache poisoning.7zh-signals: "ArgoCD 后渗透方法论,覆盖 Redis 缓存投毒集群接管、SSO 认证绕过、未授权 API 枚举、恶意 Application 部署、Webhook SSRF 与默认凭据利用。信号:ArgoCD,Kubernetes,GitOps,缓存投毒,SSO绕过,SSRF"8when-to-use: >-9 Use when encountering ArgoCD-related vulnerabilities, exploitation, unauthorized API10 access, Redis cache poisoning, SSO bypass, or GitOps/Kubernetes delivery security issues.11metadata:12 source: https://skillmd.com/skills/dangeroussong/argocd-tactics13 tags: "ArgoCD,Kubernetes,GitOps,Redis,cache poisoning,SSO bypass,SSRF,K8s cluster takeover,continuous delivery,unauthorized API"14 category: "postexploit"15 mitre_attack: "T1190,T1078"16---1718# ArgoCD Exploitation Skill19- 攻击大类:C09 Web应用漏洞利用2021- **Product**: Argo CD (declarative GitOps continuous delivery tool for Kubernetes)22- **Default ports**: 80/443 (Web UI), 8080 (Server), 6379 (Redis)23- **Fingerprints**: page title "Argo CD", `/api/v1/version` returns version information24- **Default credentials**: admin / auto-generated initial password25- **FOFA**: `app="Argo-CD"` | **Shodan**: `http.title:"Argo CD"`2627## Vulnerability Overview2829| CVE | Affected versions | Type | Condition | Impact |30|-----|---------|------|------|------|31| CVE-2024-31989 | <2.11.5 | Redis cache poisoning → K8s takeover | Redis unauthenticated | Critical (9.1) |32| CVE-2022-29165 | <2.3.1 | SSO authentication bypass | OIDC SSO configured | High (8.8) |33| CVE-2023-22482 | multiple versions | Redis information disclosure | Redis unauthenticated | High (7.5) |34| CVE-2024-40638 | multiple versions | Webhook SSRF | authenticated user | High (7.2) |35| Default credentials | all versions | initial admin password | obtain the initial password | Critical |3637## Exploitation Decision Tree3839```401. Identify ArgoCD → /api/v1/version412. Unauthorized API → /api/v1/applications, /api/v1/clusters423. CVE-2024-31989 (prefer) → Redis cache poisoning → cluster takeover434. Default credentials → admin + initial password → full control445. CVE-2022-29165 (SSO environment) → redirect_uri bypass456. CVE-2024-40638 → Webhook SSRF467. Post-authentication exploitation → malicious Application / manifest injection / privilege bypass47```4849## Exploit Chain Priority5051```521. Redis unauthenticated → CVE-2024-31989 cache poisoning → K8s cluster takeover532. Default credentials / weak credentials → full ArgoCD control543. Unauthorized API → application/cluster/repository information disclosure554. CVE-2022-29165 → SSO authentication bypass565. CVE-2024-40638 → Webhook SSRF → internal service probing576. Authenticated → create malicious Application → privileged Pod deployment58```5960## Common Endpoint Quick Reference6162| Endpoint | Method | Purpose | Auth |63|------|------|------|------|64| `/api/v1/version` | GET | version information | not required |65| `/api/v1/applications` | GET | application list | optional |66| `/api/v1/clusters` | GET | cluster list | optional |67| `/api/v1/repositories` | GET | repository list | optional |68| `/api/v1/account` | GET | account information | optional |69| `/auth/login` | GET | login page | not required |70| `Redis 6379` | - | cache service | no password by default |7172## Detailed Reference7374- [Detection scripts and post-exploitation techniques](references/detection-and-post-exploit.md) - unauthorized API detection, comprehensive scanning scripts, post-authentication exploitation techniques