Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setUp() in invariant testing #509

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Fix setUp() in invariant testing #509

merged 3 commits into from
Jun 11, 2024

Conversation

Raz0r
Copy link
Contributor

@Raz0r Raz0r commented Jun 10, 2024

There are a few problems when ityfuzz is using an InvariantOracle and calls the setUp() function:

  • if the targetContract is unverified, ityfuzz does not use heimdall/evmole to extract selectors from the bytecode
  • if a network fork is used on a specific block via createSelectFork(), block.number is not set in evm_executor.host.env

Now fetch_abi_evmole() is called on targetContract and correct block number is propagated into evm_executor.host.env.

@fuzzland-bot
Copy link

Found: 21

Project Name Vulnerability Found Time Taken Log
BIGFI_exp.txt ✅ Price Manipulation 0h-4m-11s Log File
Shadowfi_exp.txt ✅ Price Manipulation 0h-2m-54s Log File
SEAMAN_exp.txt ✅ Fund Loss 0h-0m-43s Log File
BEGO_exp.txt ✅ Fund Loss 0h-0m-12s Log File
cftoken_exp.txt ✅ Price Manipulation 0h-0m-20s Log File
Carrot_exp.txt ✅ Arbitrary Call 0h-0m-16s Log File
MBC_ZZSH_exp.txt ✅ Fund Loss 0h-4m-44s Log File
AUR_exp.txt -1 Log File
SellToken_exp.txt ✅ Fund Loss 0h-0m-21s Log File
ROI_exp.txt ✅ Fund Loss 0h-0m-10s Log File
GPT_exp.txt -1 Log File
OLIFE_exp.txt ✅ Price Manipulation 0h-1m-50s Log File
THB_exp.txt -1 Log File
VerilogCTF.txt ‼️ Crashed -1 Log File
CS_exp.txt ✅ Price Manipulation 0h-0m-39s Log File
MintoFinance_exp.txt ✅ Fund Loss 0h-0m-10s Log File
Novo_exp.txt ✅ Price Manipulation 0h-1m-41s Log File
SELLC03_exp.txt ✅ Fund Loss 0h-1m-7s Log File
Yyds_exp.txt ✅ Fund Loss 0h-0m-54s Log File
DYNA_exp.txt -1 Log File
EAC_exp.txt -1 Log File
Annex_exp.txt -1 Log File
PLTD_exp.txt ✅ Price Manipulation 0h-0m-30s Log File
ApeDAO_exp.txt ✅ Price Manipulation 0h-0m-13s Log File
GSS_exp.txt ✅ Price Manipulation 0h-1m-14s Log File
Axioma_exp.txt ✅ Fund Loss 0h-0m-48s Log File
RFB_exp.txt ✅ Fund Loss 0h-0m-27s Log File
HEALTH_exp.txt ✅ Price Manipulation 0h-0m-5s Log File

@publicqi
Copy link
Contributor

LGTM. Thanks for contributing

@publicqi publicqi merged commit f09ab28 into fuzzland:master Jun 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants