Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Arbitary commands ran on host

Summary

Arbitary commands are allowed to run on host's machine. This leads to possible malware.

Vulnerability Details

Foundry cheatcode ffi is enabled, which allows arbitary commands to run on host's machine. The testPwned test allows creating of a file on host's machine.

Impact

Creation of empty file.

Tools Used

Manual review

Recommendations

Disable ffi by setting ffi=false in foundry.toml

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

test_pwned FFI vulnerability

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!

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.