Arbitrary commands executed when running the test suite
The test testPwned uses the ffi cheatcode to create a file youve-been-pwned in the project directory. This is possible because ffi = true is enabled in the foundry.toml file. Although this time the command just created an empty file, this is a potential risk for developers as anyone who can change the tests of a project will be able to execute arbitrary commands on devices that run the tests
High
Manual Review
Remove the testPwned test and avoid using ffi cheatcode
The FFI variable within Foundry.TOML was set to TRUE. This variable gives foundry shell access and allows it to run commands on your terminal. The possibility of exploitation through this means are endless! This repo exploited this flag through test_pwned Keep an eye out before running tests!
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.