The test file test_PartialUserFlow executes arbitrary shell commands via vm.ffi() with ffi = true in foundry.toml, creating a supply chain attack vector.
In test/FestivalPass.t.sol:408-447, a bash script is constructed and executed via vm.ffi():
While this instance is a cosmetic scare animation, ffi = true enables any test to run arbitrary OS commands: exfiltrate env vars, private keys, install malware, or open reverse shells.
HIGH — Running forge test executes arbitrary shell commands. Could exfiltrate private keys, API keys, or sensitive data from developer machines.
Remove the vm.ffi() block from test_PartialUserFlow and set ffi = false in foundry.toml.
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.