Registry should be configured before installing modules when initializing the Nexus account through `Bootstrap`, or the module may never be verified.
Bootstrap provides functionalities to manage the installation of modules into Nexus smart accounts. Users can call initNexusWithSingleValidator() to initialize the Nexus account with a single validator, call initNexus() to initialize the Nexus account with multiple modules and call initNexusScoped() to initialize the Nexus account with a scoped set of modules.
Before the modules are installed, it is expected that the modules are checked by the registry (if any) to to verify the security, as we can see that each installation method (_installValidator() / _installExecutor() / _installHook() / _installFallbackHandler) is guarded by a withRegistry
modifier:
The problem is that when the modules are installed through Bootstrap
, the registry is configured after the modules are installed, this means that none of the modules are verified by the registry even if they are expected to.
Additionally, according to ERC-7484 Specification, a module must be verified against registry at least once before or during the transaction.
A Smart Account MUST implement the following Adapter functionality either natively in the account or as a module. This Adapter functionality MUST ensure that:
The Registry is queried about module A at least once before or during the transaction in which A is called for the first time.
The Registry reverting is treated as a security risk.
However, the registry is only queried about executor module when executeFromExecutor() is called, other modules are never verified even if there is an registry configured.
Modules may never be verified by the registry even for once.
Manual Review
It is recommended to configure registry before installing the modules through Bootstrap
.
Valid high, since a security feature is compromised, I believe this warrants high severity.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.