Open hats-bug-reporter[bot] opened 6 months ago
Kintsu was designed to never expose transfer_ownership to anything other than the vault.
Also, there is no way for calling 'share_token/lib.rs:transfer_ownership' by the vault and share_token
will always be owned and managed by the vault. However, the vault code could be changed, and in further versions, maybe the transfer ownership could be called.
Github username: @erictee2802 Twitter username: 0xEricTee Submission hash (on-chain): 0xb0619e21af0b222a09552f6abd8ee637475d5f4fe9be4e8450ccb8f4adf6c3a9 Severity: low
Description: Description\
The
share_token/lib.rs:transfer_ownership
function in the share_token contract is crucial, and emitting events when these actions occur is essential for transparency and informing users about important changes. Adding events for these functions will provide users with a clear record of when the ownership has been transferred to another address.Attack Scenario\
The absence of events for these critical functions may result in a lack of transparency, making it difficult for users to track important changes in the share_token contract. Emitting events can ensures that users are informed.
Attachments
NA
In
share_token/lib.rs:transfer_ownership
:Noticed that it is missing event emission.
Consider adding event emission in
share_token/lib.rs:transfer_ownership
similar to what has been implemented invault/lib.rs:transfer_role_owner
.