Wrong actor forwarding bricks token upgrade flows
The configurator's token-upgrade functions authenticate the pool admin but then forward that admin address to the router as the caller. The router expects the configurator contract address instead, so every legitimate upgrade call reverts with Unauthorized and both upgrade paths are unusable.
Submitted by v12
Found by V12
contracts/pool-configurator/src/reserve.rs#L631contracts/pool-configurator/src/reserve.rs#L663contracts/kinetic-router/src/reserve.rs#L381
Targets
- PoolConfiguratorContract::update_atoken
- PoolConfiguratorContract::updatevariabledebt_token
- KineticRouter::updatetokenimplementation
Affected Locations
- PoolConfiguratorContract.update_atoken: Authenticates the pool admin, then incorrectly forwards that external
callerto the router instead of the configurator contract address. - PoolConfiguratorContract.updatevariabledebt_token: Authenticates the pool admin, then incorrectly forwards that external
callerto the router instead of the configurator contract address. - KineticRouter.updatetokenimplementation: Performs
storage::validate_pool_configurator(env, caller), so it rejects the forwarded admin EOA because it expects the stored pool configurator contract address.
Description
Both token-upgrade entrypoints in the configurator validate the pool admin locally, but then pass that admin EOA as caller when invoking the router. The router-side upgrade flow ultimately reaches update_token_implementation, which authorizes caller with storage::validate_pool_configurator, meaning it expects the pool configurator contract address rather than the admin address. Because these are different actors, every otherwise legitimate call fails with Unauthorized before either the aToken or variable-debt-token implementation can be updated. The surrounding configurator-to-router patterns cited in the inputs show the intended handoff: external admin authorization should happen in the configurator, while the router should receive env.current_contract_address() as the calling contract identity. As a result, both documented upgrade paths are bricked by the same cross-contract actor mismatch.
Root Cause
update_atoken and update_variable_debt_token forward the authenticated admin caller across the contract boundary instead of env.current_contract_address(), but KineticRouter.update_token_implementation authorizes the pool configurator contract address.
Impact
Protocol operators cannot use the intended configurator flow to upgrade aToken or variable debt token implementations, so emergency fixes and routine token implementation changes will revert every time. If a production bug is discovered in either token type, the system may remain stuck on the old code until an out-of-band recovery, migration, or redeployment path is used.
Proof of Concept
See this gist for full Proof of Concept
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
The configurator forwards the authenticated admin caller across the contract boundary instead of its own contract address, while the router authorises only the stored pool configurator address.
Impact
Operators cannot upgrade aToken or variable debt token implementations through the intended flow, so emergency fixes and routine changes revert until an out-of-band recovery, migration or redeployment is used.
What the attacker needed
Pool admin role; configurator-to-router upgrade flow
The fix
The configurator should pass its own contract address as the caller when invoking the router, keeping admin authorisation on the configurator side.
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.
A smart contract can check who is calling it. Here one contract (the configurator) checks that the caller is the pool admin, then passes that admin's address along to a second contract (the router). The router instead expects the call to come from the configurator contract itself, so it rejects the admin's address and the upgrade never happens.
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.