HardhatFoundry
30,000 USDC
View results
Submission Details
Severity: low
Invalid

Precompile Contracts Return True Even When a Call to Them Fails

Summary

When calling precompiles, the call is still considered successful even on error or failure. A failed precompile call simply results in a returndatasize of 0.

Vulnerability Details

In the ExecutionHelper contract, we have _execute and _tryExecute functions, both of which return true even when our calls to precompiles fail.

Impact

This behavior results in incorrect return data and lacks a revert in _execute when the call to the precompile fails.

Tools Used

Manual

Recommendations

We should check if our call to the precompile was successful and verify the output.

Updates

Lead Judging Commences

0xnevi Lead Judge
11 months ago
0xnevi Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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