Skip to content

Detector: Reentrancy via env.invoke_contract before effects #793

Description

@Gbangbolaoluwagbemiga

Epic: Detectors (wave 3)

Summary

Add a static-analysis detector for reentrancy via env.invoke_contract before effects.

Background & Problem

Direct invoke_contract calls preceding state writes reopen the CEI reentrancy risk.

Acceptance Criteria

  • Flags invoke_contract before effects.
  • No FP when effects precede.

Technical Notes

Follow the rule pattern in tooling/sanctifier-core/src/rules/ with an insta golden snapshot.


Filed as part of the mainnet-readiness & world-class roadmap. Scope is intentionally small enough for one focused PR; comment to claim.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardSecuritySecurity hardeningarea: core-enginesanctifier-core static analysis enginedetectorNew or improved static-analysis detectordifficulty: hardComplex, ~1-2 weekstype: featureNew capability or enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions