You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @alu0100832211, can you elaborate a bit? While using whatthecommit is obviously not a sane idea in general. I'm not sure how this could be exploited directly, unless it's possible to cirrucmvent bash. However, I totally agree that you shouldn't paste things or load things directly from the internet(tm).
# to simulate a curl that responds this as a plain text responsefunctionwhatthecommit() { echo'$(ls -la)' }
echo"$(whatthecommit)"# => "$(ls -la)", the second $() is not expanded
If whatthecommit decides to upload a commit message of type
$(foo)
, a command corresponding with foo will run in your shell.Example:
git commit -m $(rm -rf *)
The text was updated successfully, but these errors were encountered: