Description: The MerkleAirdropTest.t.sol::testPwned()
as the name suggests uses a ffi access in foundry.toml
to execute arbitrary commands on the user's machine.
Impact: The current test is not harmful as it just creates an empty file, but it can be used to do harm to users and steal private keys or potentialy removing important information.
Proof of Concept:
here is one simple way that hacker can steal data from user:
Recommended Mitigation: Always exercise caution before running third-party programs on your system. Ensure you understand the functionality of any command or script to prevent unintended consequences, especially those involving security vulnerabilities.
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.