Skip to content

Detector: Approval race (approve without zero-first) for SEP-41 #806

Description

@Gbangbolaoluwagbemiga

Epic: Detectors (wave 3)

Summary

Add a static-analysis detector for approval race (approve without zero-first) for SEP-41.

Background & Problem

Changing an allowance without zeroing first enables the classic approve front-run double-spend.

Acceptance Criteria

  • Flags allowance updates lacking zero-first/expiry mitigation.
  • Advisory with references.

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