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

Protocol.sol - SWC-107: External call may lead to reentrancy. , SWC-101: Subtraction can cause underflow.

  • Summary: Core protocol logic.

  • Vulnerability Details:

    • Reentrancy: SWC-107: External call may lead to reentrancy.

      (bool success, ) = contractAddress.call(data);

      Line: 110

    • Unchecked Arithmetic: SWC-101: Subtraction can cause underflow.

      uint256 newBalance = totalBalance - withdrawalAmount;

      Line: 78

  • Impact: Potential exploitation of the protocol.

  • Tools Used: Manual code inspection.

  • Recommendations:

    • Reentrancy Fix: Protect external calls with ReentrancyGuard.

      import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
    • Arithmetic Fix: Use safe math for arithmetic operations.

      uint256 newBalance = SafeMath.sub(totalBalance, withdrawalAmount);
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.