Closed sherlock-admin3 closed 6 months ago
Escalate
This is a dupe of https://github.com/sherlock-audit/2024-04-titles-judging/issues/283
Escalate
This is a dupe of https://github.com/sherlock-audit/2024-04-titles-judging/issues/283
You've created a valid escalation!
To remove the escalation from consideration: Delete your comment.
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
Agree with the escalation, planning to accept and duplicate with #283
UPD: 283 is escalated and if it's invalid in the end, this escalation will be rejected cause it doesn't effect reward distribution.
Result: Medium Duplicate of #283
zoyi
medium
Transferring ownership does not fully transfer ownership
Summary
The old owner still receives minting proceeds even though the old owner has transferred the ownership.
Vulnerability Detail
As per the README.md:
A creator can call
transferWork()
to transfer full ownership to another address:The problem is, even if a creator transfers full ownership to another address, the old creator will still receive the minting funds.
Proof of Concept
Run this test in
Edition.t.sol
:This test will successfully run - the minting proceeds will go to the old creator even though the ownership has been fully transferred to a new address.
Impact
Loss of minting proceeds, which is significant. Imagine a big AI artist selling one of their works to a buyer. The big AI artist transfers ownership to the buyer but little does the buyer know the big AI artist will still be receiving newly minted proceeds.
Code Snippet
Edition.sol#L412-L420
Tool used
Manual Review
Recommendation
Route the minting proceeds to the creator, not the old creator.
Duplicate of #283