Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard against workflow shell execution vulnerabilities #2341

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Athanasius
Copy link
Contributor

This is in reaction to what happened ref: https://www.wiz.io/blog/ultralytics-ai-library-hacked-via-github-for-cryptomining

I think I caught all the instances. I'd double-check the windows-build.yml changes as the variable references are github-workflow style rather than shell. If what I did doesn't work you might have to explicitly assign the values to shell variables then use those with the "..." quoting.

This is with regards to what happened to another project, ref:

<https://www.wiz.io/blog/ultralytics-ai-library-hacked-via-github-for-cryptomining>

Basically, do NOT trust that things like branch names don't contain any
attempt at executing shell code if referenced in a workflow segment that
runs a shell command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant