• auditx_eth Profile Picture

    RNx ™ 🛡️ @auditx_eth

    2 years ago

    BUG - Access Control 🤦‍♂️It seems like a simple mistake, but forgetting to place restrictions on who can call a sensitive function (like withdrawing ether or changing ownership) happens surprisingly often. Even if a modifier is in place, there have been cases where the modifier was not implemented correctly, such as in the example below where the require statement is missing. // DO NOT USE! modifier onlyMinter { minters[msg.sender] == true_; } This above 👆 code is a real example from this audit👇: code4rena.com/reports/2023-0… Here is another way access control can go wrong👇 function claimAirdrop(bytes32 calldata proof[]) { bool verified = MerkleProof.verifyCalldata(proof, merkleRoot, keccak256(abi.encode(msg.sender))); require(verified, "not verified"); require(alreadyClaimed[msg.sender], "already claimed"); _transfer(msg.sender, AIRDROP_AMOUNT); } In this case, “alreadyClaimed” is never set to true, so the claimant can issue call the function multiple times. ✅So as a smart contract engineers or auditors you all guys should be care full in the time of write smart contract Stay with @auditx_eth and learn more to improve auditing skill

    3 3 6 191 2
  • React20Bulletin Profile Picture

    𝑹𝒆𝒂𝒄𝒕20𝑩𝒖𝒍𝒍𝒆𝒕𝒊𝒏 📨 Tuesday @React20Bulletin

    2 years ago

    @auditx_eth Access Control is one important BUG. Lesson on it is very important. Thanks for sharing @auditx_eth ™ 🫡

    1 0 4 35 0
  • zahidul98 Profile Picture

    Zahidul🔥🎯✈️ @zahidul98

    2 years ago

    @auditx_eth a very important lesson about Access Control of BUG 🔥 thanks ser @auditx_eth 🫡

    1 0 3 14 0
  • web3_code_hunt Profile Picture

    web3_code_hunt @web3_code_hunt

    2 years ago

    @auditx_eth Great Explained @auditx_eth ™ 🔥

    1 0 2 24 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer