Critical uberOwner address changes should be a two-step process
The contracts allow the current uberOwner to change the uberOwner address in a single step without validating that the new address is correct. If the current uberOwner mistakenly sets an address they do not control, the system becomes permanently locked because the uberOwner cannot be corrected and all uberOwner-only functions become uncallable.
*Submitted by 0xRajeev, also found by gpersoon and a*dlamo._
As specified, uberOwners of Factory, Orderbook and Treasury have the highest privileges in the system because they can upgrade contracts of market, Nfthub, order book, treasury, token and factory which form the critical components of the protocol.
The contracts allow for uberOwners to be changed to a different address from the contract owner/deployer using the changeUberOwner() function which is callable by the current uberOwner. While this function checks for zero-address, there is no validation of the new address being correct. If the current uberOwner incorrectly uses an invalid address for which they do not have the private key, then the system gets locked because the uberOwner cannot be corrected and none of the other functions that require uberOwner caller can be executed.
Impact: The current uberOwner uses a non-zero but incorrect address as the new uberOwner. This gets set and now the system is locked and none of the uberOwner-only callable functions are callable. This error cannot be fixed either and will require redeployment of contracts which will mean that all existing markets have to be terminated. The system will have to be shut and restarted completely from scratch which will take a reputation hit and have a serious technical and business impact.
Recommend changing the single-step change of uberOwner address to a two-step process where the current uberOwner first approves a new address as a pendingUberOwner. That pendingUberOwner has to then claim the ownership in a separate transaction which cannot be done if they do not have the correct private key. An incorrectly set pendingUberOwner can be reset by changing it again to the correct one who can then successfully claim it in the second step.
Splidge (Reality Cards) marked as duplicate:
Duplicate of #5
There is a very low probability coupled with a very high impact, making this a Medium risk issue in my opinion.
Note: Additional conversation regarding this vulnerability can be found here
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
Root cause
Likely the single-step ownership transfer lacks a confirmation step from the new owner, so an incorrect address cannot be detected or corrected.
Impact
If the current uberOwner sets a non-zero but incorrect address, the system becomes locked and cannot be fixed without redeploying all contracts, terminating existing markets and causing a serious technical and business impact.
What the attacker needed
Current uberOwner makes a typo; new address is non-zero but uncontrolled
The fix
The change should be a two-step process: the current uberOwner approves a pendingUberOwner, who must then claim ownership in a separate transaction, allowing an incorrectly set pendingUberOwner to be reset.
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.
An uberOwner is a special account with the highest permissions, able to upgrade important contracts. The problem is that changing this account happens in one step: if the owner types the wrong address by mistake, the new address cannot do anything and the old owner loses control. This locks the system because no one can fix the mistake, and the only solution is to redeploy everything from scratch.
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.