The project configuration enables Foundry Foreign Function Interface (ffi = true) globally, and includes test code that executes shell commands via vm.ffi().
In test/FestivalPass.t.sol, the test test_PartialUserFlow() defines a multi-step bash script interacting directly with the developer's /dev/tty terminal and executes it using vm.ffi(inputs).
Likelihood:
Always occurs whenever any developer, auditor, or automated CI/CD pipeline runs forge test.
Impact:
Host compromise / supply chain risk: Arbitrary shell command execution on local machines and CI environments running tests.
Run forge test --match-test test_PartialUserFlow:
Foundry executes the subshell process and terminal interaction directly on the host machine.
Remove ffi = true from foundry.toml unless strictly necessary and sandboxed.
Remove any arbitrary shell invocations (vm.ffi) from tests.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.