NFTBridge
60,000 USDC
View results
Submission Details
Severity: medium
Invalid

State.sol - SWC-123: Enforce valid state transitions, SWC-124: May allow unauthorized state changes.

  • Summary: Handles state management.

  • Vulnerability Details:

    • State Transitions: SWC-123: Enforce valid state transitions.

      require(newState != currentState, "Invalid state transition");

      Line: 35

    • Direct State Manipulation: SWC-124: May allow unauthorized state changes.

      state = newState;

      Line: 42

  • Impact: Invalid transitions could compromise the system.

  • Tools Used: Manual code inspection.

  • Recommendations:

    • Transition Fix: Add comprehensive checks before state transitions.

      require(newState != currentState, "Invalid state transition");
    • Manipulation Fix: Ensure only authorized changes to the state.

      state = newState;
Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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