Kubernetes & Helm (YAML / Containers) · CWE-915

Kubernetes & Helm: BOPLA & Mass Assignment Privilege Escalation

Prevent attackers from modifying internal fields like role, isAdmin, balance, or tenantId via request bodies. Applied specifically to Kubernetes & Helm: Enforce non-root securityContext, readOnlyRootFilesystem, and NetworkPolicies.

Primary AegisSec skill
owasp-api-graphql-audit ->
Companion: finding-verification-triage
Coverage ledger tracking key
surface:kubernetes-helm::boundary:mass-assignment::principal:ServiceAccount RBAC
API contract schema diff testing unexpected role, plan, or orgId body keys
Risk boundary
// Unverified Kubernetes & Helm path (CWE-915)
// Handler accepts client input without validating ServiceAccount RBAC or boundary invariants before sink.
Hardened guard
// Hardened Kubernetes & Helm pattern (CWE-915)
// 1. Enforce non-root securityContext, readOnlyRootFilesystem, and NetworkPolicies
// 2. Allowlist explicit DTO properties before persistence and map output fields cleanly.

Verification steps

  1. 01Seed coverage-ledger.json for every Kubernetes & Helm route handling this boundary.
  2. 02Inspect the code trace from request input down to the persistence or egress sink.
  3. 03Confirm with paired User A vs User B requests (or staging baseline-vs-payload replay) via finding-verification-triage.