Skip to content

TEST: verify shell injection is blocked with branch name test-$(id)#32

Closed
jonathansantilli wants to merge 2 commits intoaction/E-1815from
test-$(id)
Closed

TEST: verify shell injection is blocked with branch name test-$(id)#32
jonathansantilli wants to merge 2 commits intoaction/E-1815from
test-$(id)

Conversation

@jonathansantilli
Copy link
Copy Markdown
Collaborator

What this tests

This PR exists solely to verify that the security fix on action/E-1815 works.

The branch name is test-$(id). If the injection vulnerability still existed,
$(id) would execute as a shell command and the logs would show something like
uid=1001(runner).

If the fix works, the logs should show the literal string test-$(id) without
executing anything.

Close this PR after verifying the logs. Do not merge.

@jonathansantilli
Copy link
Copy Markdown
Collaborator Author

Injection test result: PASS

The branch name test-$(id) was handled safely:

  • No uid= output in logs ($(id) was NOT executed)
  • Branch name passed through env var → quoted variable → treated as data
  • Mobb action completed successfully with a valid fix URL
  • All checks green

Closing this test PR. The fix is verified.

Print REPO and BRANCH values so reviewers can verify that branch names
containing shell metacharacters (e.g. test-$(id)) are treated as literal
text and not executed.

Ref: E-1815
@jonathansantilli
Copy link
Copy Markdown
Collaborator Author

Injection test completed successfully. See PR #31 comment for evidence.

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