OXAUDIT WHITEPAPER
Request an Audit
  • 🔋OXAUDIT ECOSYSTEM: Where Blockchain Security Meets Education
  • 🛡️SERVICES
    • Smart Contract Audits
      • What is a Smart Contract Audit?
      • Types of Vulnerabilities Detected
        • Reentrancy Attacks
        • Integer Overflows/Underflows
        • Access Control Issues
        • Logic Errors
        • Gas Optimization
        • Front-Running
        • Denial of Service (DoS) Attacks
      • Audit Process Overview
    • DApp Auditing
      • Introduction to DApp Security
      • Common Risks in DApp Development
      • How OXAudit Assesses DApp Security
    • Penetration Testing
      • What is a Penetration Testing
      • Tools and Techniques Used
      • Best Practices and Recommendations
    • Layer 2 Scaling Audits
      • What is a Layer 2 Security
      • Common Layer 2 Vulnerabilities
      • OXAudit’s Layer 2 Auditing Approach
  • 🛡️TOOLS
    • AI Vulnerabilities Finder
    • Multi-chain Contract Scan
      • Overview and Purpose
      • Supported Contract Types
      • Running an Initial Scan
  • 🛡️OXAUDIT ANALYTICS FRAMEWORK
    • OXAudit Solidity Framework:Core Functions
    • Step-by-Step Guide
    • Benefits
      • for Developers
      • for Trader
    • Upcoming Features
  • 🛡️FEATURES
    • Revenue Sharing Model
      • Overview
      • Tiers
      • Distribution Mechanics
      • Benefits to Holders
    • OXAudit Educational Program
      • Introduction
      • Program Overview
      • Core Features of the Program
    • API Reference
      • Authentication
      • Endpoints
      • Parameters
      • Response Formats
      • Error Codes
    • Tokenomics
  • ⚖️LEGAL
    • TERM AND CONDITION
    • PRIVACY POLICY
  • 💻OFFICIAL LINKS
    • WEBSITE
    • TWITTER
    • TELEGRAM
    • Dapp
    • BLOGS
Powered by GitBook
On this page
  • How They Work
  • Real-Life Impact
  1. SERVICES
  2. Smart Contract Audits
  3. Types of Vulnerabilities Detected

Integer Overflows/Underflows

Integer Overflows and Underflows occur when mathematical operations exceed the storage limits of a variable, causing unexpected behavior. These vulnerabilities allow attackers to manipulate values in ways that can break contract logic.

How They Work

  1. Integer Overflow: When a value exceeds the maximum limit of its data type, it wraps around to the minimum value. Example:

    solidity
    
    uint8 x = 255; // Max value for uint8
    x += 1;       // Overflow: x becomes 0
  2. Integer Underflow: When a value is reduced below the minimum limit of its data type, it wraps around to the maximum value. Example:

    solidity
    
    uint8 x = 0; // Min value for uint8
    x -= 1;     // Underflow: x becomes 255

Real-Life Impact

Attackers exploit overflows/underflows to:

  • Mint extra tokens.

  • Bypass balance checks.

  • Gain unauthorized access to funds.

PreviousReentrancy AttacksNextAccess Control Issues

Last updated 6 months ago

🛡️