-
Notifications
You must be signed in to change notification settings - Fork 811
Open
Labels
Description
Repro
main.bicepparamusing 'main.bicep' param safeInput = '[subscription().id]' param vulnerableInput = { 'in the value': '[subscription().id]' '[subscription().id]': 'in the key' }
main.bicepparam safeInput string param vulnerableInput object = {} var expansion = [for key in objectKeys(vulnerableInput): { name: key value: string(vulnerableInput[key]) }] output safeOutput string = safeInput output vulnerableOutput object[] = expansion
Expected outcome
Both safeOutput and vulnerableOutput contain the string [subscription().id] unevaluated
Actual outcome
The vulnerableOutput output contains the evaluated result of [subscription().id]:

Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo