delegatecall with user-controlled target
Venus Protocol's assessment for RD-F-012 — scored green on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
Diamond.sol uses delegatecall in fallback to dispatch to facets, but targets are determined by admin-controlled _selectorToFacetAndPosition mapping (not user-supplied). SetterFacet shows no user-controlled external call targets. No user-controlled delegatecall target found in source inspection.
Sources #
- GitHubDiamond.sol — admin-controlled delegatecall targetsDiamond.sol fallback delegatecall patternretrieved 2026-04-28
- SetterFacet.sol — no user-controlled external callsSetterFacet.sol source inspectionretrieved 2026-04-28
Methodology #
Determine whether any contract uses `delegatecall` where the target address is or can be user-supplied without an on-chain allowlist.
See the full factor methodology and distribution across all protocols →
rubric_version v1.7.0 protocol venus factor RD-F-012 score green collected_at 2026-04-28 18:30:49