Skip to content

Conversation

tspascoal
Copy link
Contributor

@tspascoal tspascoal commented Jun 20, 2023

The use of the single quote effectively prevents the attack highlighted in the Expression injection in Actions query help it also prevents it from working effectively since using single quotes will effectively print $BODY because the variable is not expanded.

Double quotes will allow the expansion of the variable while still preventing the attack

While this prevents the attack highlighted in the query help it also prevents it from working.

Double quotes will allow the expansion of the variable while still preventing the attack
@tspascoal tspascoal requested a review from a team as a code owner June 20, 2023 10:41
@github-actions github-actions bot added the JS label Jun 20, 2023
@tspascoal tspascoal changed the title Single quote was preventing the shell from expanding the BODY variable Single quote was preventing the shell from expanding the BODY variable in Expression injection in Actions example Jun 20, 2023
@owen-mc owen-mc changed the title Single quote was preventing the shell from expanding the BODY variable in Expression injection in Actions example JS: Single quote was preventing the shell from expanding the BODY variable in Expression injection in Actions example Jun 20, 2023
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️

@erik-krogh erik-krogh merged commit 12b3913 into github:main Jun 21, 2023
@tspascoal tspascoal deleted the patch-1 branch June 22, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants