hats-finance / Euro-Dollar-0xa4ccd3b6daa763f729ad59eae75f9cbff7baf2cd

Audit competition repository for Euro-Dollar (0xa4ccd3b6daa763f729ad59eae75f9cbff7baf2cd)
https://hats.finance
MIT License
0 stars 0 forks source link

MISSING ZERO ADDRESS VALIDATION #21

Open hats-bug-reporter[bot] opened 1 day ago

hats-bug-reporter[bot] commented 1 day ago

Github username: @mgf15 Twitter username: -- Submission hash (on-chain): 0xdd4eb1c0dd9d9d409992419d5bda90ca44b0cc40a46cfb3f23e28485d78dae49 Severity: low

Description: Description\ The given input is missing the check for the non-zero address.

  1. Proof of Concept (PoC) File
    function setOracle(address _oracle) external onlyOwner {
        oracle = _oracle;
    }

    https://github.com/eurodollar-fi/eurodollar-protocol/blob/3900ae6a01f5c60146d314bf45b2ab67179422d1/src/YieldOracle.sol#L110C5-L112C6

AndreiMVP commented 1 day ago

Dup of https://github.com/hats-finance/Euro-Dollar-0xa4ccd3b6daa763f729ad59eae75f9cbff7baf2cd/issues/3