The test file SantasListTest.t.sol contains a function 'testPwned' that executes an arbitrary command on the users machine.
When ran, this 'testPwned' function creates a file 'youve-been-pwned-remember-to-turn-off-ffi!' in the project directory. This is possible because in the foundry.toml file ffi = true. This is dangerous because malicious actions can be performed without being noticed by the user running the test suite!
Private keys can be stolen, information can be leaked, viruses can be injected, and much more!
--Foundry
It is recommended to delete the 'testPwned' function and set ffi = false in the foundry.toml file.
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.