Page MenuHomeVyOS Platform

community.vyos.net: deploy workflow writes unvalidated inputs to GITHUB_ENV
Open, NormalPublic

Description

.github/workflows/main.yml writes the aws_amplify_region, aws_amplify_app_id and branch inputs into $GITHUB_ENV through ${{ }} interpolation inside run:. A value with a newline can add arbitrary environment variables for later steps, and expression interpolation in run: is the script-injection pattern GitHub warns about.

Fix: pass the inputs via env:, validate them against strict patterns, and write them with printf.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)