TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

TempleGoldAdmin lacks transferOwner and renounce owner functions.

Summary

Vulnerability Details

TGLD contract imports an Ownable contract which is set to TempleGoldAdmin but it can never be changed because templeGoldAdmin doesn't have functions to change it.

function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}

Impact

owner cannot be changed

Tools Used

manual

Recommendations

add functions that can call renounceOwnership and transferOwnership functions in the TempleGoldAdmin contract.

function transferOwner(address _newOwner) external onlyElevatedAccess {
IOwnable(address(templeGold)).transferOwnerShip(_newOwner);
}
function renounceOnwership() external onlyElevatedAccess {
IOwnable(address(templeGold)).renounceOwnership();
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.