The seawater_admin
cannot update the emergency_council
.
#7
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate-162
🤖_41_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
sufficient quality report
This report is of sufficient quality
upgraded by judge
Original issue severity upgraded from QA/Gas by judge
Lines of code
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/seawater/src/lib.rs#L1121
Vulnerability details
Impact
Due to a logic error in the
update_emergency_council_7_D_0_C_1_C_58
function, theemergency_council
in the contract cannot be updated by theseawater_admin
.This will result in the
emergency_council
contract being unable to be upgraded after it becomes outdated, and thenft_manager
may be incorrectly set.Proof of Concept
The
update_emergency_council_7_D_0_C_1_C_58
function mistakenly sets thenft_manager
to the providedemergency_council
address. This results in thenft_manager
being incorrectly set, and theemergency_council
not being updated.Tools Used
Manual Review
Recommended Mitigation Steps
Assessed type
Error
The text was updated successfully, but these errors were encountered: