โ† All Blockchain Technology Flashcard Decks

Smart Contract Vulnerabilities Flashcards

6 cards from real Blockchain Technology practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 Smart Contract Vulnerabilities flashcards as text
  1. What is a common vulnerability that allows repeated withdrawals in smart contracts?

    Answer: Reentrancy

    Reentrancy attacks occur when a function makes an external call to another untrusted contract before it resolves its own logic.

  2. Why is input validation critical in smart contracts?

    Answer: To ensure logical correctness and safety

    Without input validation, contracts can be tricked into performing unintended actions or altering expected outcomes.

  3. Which vulnerability can allow funds to be locked indefinitely in a contract?

    Answer: Fallback function flaw

    A contract with a missing or broken fallback mechanism may prevent fund retrieval, leading to permanent fund loss.

  4. What is the purpose of using the 'checks-effects-interactions' pattern?

    Answer: To defend against reentrancy attacks

    This pattern reduces the risk of reentrancy by ensuring that all internal logic updates occur before calling external contracts.

  5. Which tool is commonly used to audit smart contracts for vulnerabilities?

    Answer: MythX

    MythX is a widely used security analysis tool for detecting smart contract vulnerabilities through automated testing.

  6. How can smart contracts defend against integer overflows?

    Answer: Using SafeMath libraries

    Using safe math libraries like OpenZeppelin helps prevent overflow errors by checking calculations before performing them.