This repository was archived by the owner on Jun 1, 2026. It is now read-only.
security: CWE-494: Pin S3 template URLs with versionId — VC-53699#1
Open
torresashjiancyber wants to merge 1 commit into
Open
security: CWE-494: Pin S3 template URLs with versionId — VC-53699#1torresashjiancyber wants to merge 1 commit into
torresashjiancyber wants to merge 1 commit into
Conversation
…guidance VC-53699
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses CWE-494 (Download of Code Without Integrity Check) by pinning all CloudFormation template S3 URLs with version identifiers and enhancing IAM capability review guidance.
Finding
The workshop documentation directed users to invoke
aws cloudformation create-stackwith mutable S3 template URLs (no?versionId=pin) and CAPABILITY_IAM permissions, creating a supply-chain risk: any party able to overwrite those S3 objects could provision arbitrary IAM roles and Lambda code in consumer AWS accounts.CVSS 8.5 High - CWE-494: Download of Code Without Integrity Check
Remediation
Applied minimal security controls to 7 deployment entry points across documentation:
S3 URL pinning: Appended
?versionId=REPLACE_WITH_PINNED_VERSION_IDto all template URLs:docs/02-one-time-aws-account-setup/README.md(venafi-one-time-setup.yaml)docs/03-tlspc-policy-automation/README.md(tlspc-policy.yaml, 2 refs)docs/04-tlspc-certificate-automation/README.md(tlspc-certificate.yaml)docs/101-cloudformation-from-aws-cli/README.md(3 CLI commands)IAM review guidance: Replaced "check ✅ the Capabilities checkbox" in one-time setup with explicit instruction to review IAM template content before acknowledging CAPABILITY_IAM.
Note: Placeholder
REPLACE_WITH_PINNED_VERSION_IDrequires substitution with actual S3 object version IDs before deployment.Verification