defirisk.co
rubric v1.7.0

ecrecover zero-address return unchecked

Sky Lending (formerly MakerDAO)'s assessment for RD-F-019 — scored yellow on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.

Evidence summary #

DAI token permit() checks holder != address(0) before comparing to ecrecover result, providing functional but non-OZ-standard protection. USDS token uses OZ ERC-20PermitUpgradeable (standard-compliant). Core Vat does not use ecrecover.

Sources #

  • URL
    https://github.com/sky-ecosystem/dss/blob/master/src/dai.solretrieved 2026-04-27
  • URL
    https://github.com/sky-ecosystem/usds/blob/master/src/Usds.solretrieved 2026-04-27

Methodology #

Determine whether any `ecrecover` call result is used without a `!= address(0)` guard.

See the full factor methodology and distribution across all protocols →

rubric_version v1.7.0 protocol sky-lending factor RD-F-019 score yellow collected_at 2026-04-28 00:43:18