Skip to content

feat(forge-lint): add UncheckedReentrancy lint #11034

@0xClandestine

Description

@0xClandestine

Component

Forge

Describe the feature you would like

I'd like to propose a new lint rule called UncheckedReentrancy for forge lint. This rule should flag functions that lack a nonReentrant-like modifier and contain external calls followed by state mutations (which suggests a reentrancy bug).

Most libraries seam to use nonReentrant:

Additional context

DAO hack
SWC-107

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions