Terraform IaC (HCL / Cloud) · CWE-285
Terraform IaC: BFLA & Missing Function Auth (Code Remediation)
Implement fail-closed guards and safe data filters. Prevent standard authenticated accounts from calling admin or moderator endpoints. Tailored for Terraform IaC: Deny public wildcard IAM statements and enforce encrypted storage buckets.
Coverage ledger tracking key
surface:terraform-iac::boundary:bfla-admin-escalation::angle:remediation
Low-privilege role call against administrative route inventory
Risk boundary
// Unverified Terraform IaC path (CWE-285 · Code Remediation)
// Handler accepts input without validating IAM policy principal.Hardened guard
// Hardened Terraform IaC (CWE-285 · Code Remediation)
// 1. Deny public wildcard IAM statements and enforce encrypted storage buckets
// 2. Enforce central role guards and re-check function permissions on every controller.Verification steps
- 01Seed coverage-ledger.json for every Terraform IaC handler touching BFLA & Missing Function Auth.
- 02Trace request parameters through IAM policy principal validation down to the sink.
- 03Verify with paired positive/negative evidence via owasp-web-audit.