The buyOutEstateNFT
function does not check whether beneficiaries have received their funds after the deadline, allowing buyouts to occur prematurely.
The function uses the onlyBeneficiaryWithIsInherited
modifier, but this does not enforce the requirement that beneficiaries must have received their funds after the deadline.
This could allow beneficiaries to buy out the estate NFT before they have received their fair share of the funds.
Premature Buyouts: Beneficiaries could buy out the estate NFT before receiving their funds, violating the intended workflow.
Security Risk: The buyout process could be exploited to bypass the fund distribution logic.
Manual review
Add a check to ensure beneficiaries have received their funds after the deadline:
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.