| 标题 | SpecterOps BloodHound 9.4.0 Improper Authorization |
|---|
| 描述 | PATCH /api/v2/domains/{objectID} is a graph-write endpoint that updates a domain node's collected property, but it is authorized with a read-tier permission (GraphDBRead) instead of a write-tier one (GraphDBWrite).
As a result, roles intended to be read-only (Read-Only, Auditor) or otherwise lacking graph-write rights (User) can perform this write. The collected flag controls whether a domain is included in attack-path post-processing, so setting it to false causes that domain's attack-path edges (DCSync, ADCS ESCs, CanRDP, Owns, NTLM relay, etc.) to be deleted and not regenerated on the next analysis run, letting a low-privilege user hide attack paths from defenders.
Exploitable via both JWT session and API-key authentication.
Reproduction:
1. As a Read-Only user: PATCH /api/v2/domains/{domainSID} body {"collected":false} → HTTP 200
2. After next analysis run: MATCH ()-[r:DCSync]->() RETURN count(r) drops from 2 → 0
3. Restore collected=true + re-analyze → returns to 2
Solution:
Change the route to RequirePermissions(permissions.GraphDBWrite) (currently GraphDBRead) in cmd/api/src/api/registration/v2.go:261. |
|---|
| 用户 | b1d0ws (UID 74336) |
|---|
| 提交 | 2026-07-17 21時57分 (2 月前) |
|---|
| 管理 | 2026-09-03 17時47分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 398471 [SpecterOps BloodHound 直到 9.5.1 Graph Write Endpoint v2.go NewV2API 权限提升] |
|---|
| 积分 | 17 |
|---|