Hidden governance
The VUSD contract uses two separate governance mechanisms: VanillaGovernable and role-based access from [redacted]. This dual model could hide a rogue pool and damage user trust.
Submitted by 0x1f8b
The contract use two governance model, one looks hidden.
Proof of Concept
The VUSD contract uses VanillaGovernable but inherits from ERC20PresetMinterPauserUpgradeable and this contract uses roles to use some administrative methods like pause or mint.
This two-governance model does not seem necessary and can hide or raise suspicion about a rogue pool, thus damaging the user’s trust.
Recommended Mitigation Steps
Unify governance in only one, VanillaGovernable or role based.
atvanguard (Hubble) confirmed and resolved
Yes, a good suggestion to keep governance more tightly coupled. OZ has AccessControlledAndUpgradeable which is really nice. Various roles for varying level of admin functionality. Allows tighter controls on more controversial items and easier control on less controversial items.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
The dual governance model could hide a rogue pool and damage user trust.
What the attacker needed
None
The fix
Unify governance into a single model, either VanillaGovernable or role-based.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report points out that a smart contract has two different ways to control who can do administrative actions. One is a custom governance contract, and the other is a set of roles built into the token standard. Having two systems can confuse users and make it harder to see who is really in charge.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.