The setNftValue
function in the Trustee contract does not validate its input, allowing the trustee to set an NFT’s value to zero. This can disrupt the intended buyout calculation logic.
Without proper input validation, a trustee can maliciously set the value of an NFT to zero. In scenarios where the NFT value is used to calculate buyout amounts (as in the buyOutEstateNFT
function), this manipulation can lead to incorrect or unfair fund distribution among beneficiaries, thereby impacting the overall estate valuation and distribution process.
Indirect Impact: The manipulation affects the accuracy of buyout calculations, potentially causing beneficiaries to receive incorrect payouts.
Manual review
Introduce a check in setNftValue
to ensure that the NFT value is above a minimum threshold (e.g., non-zero) to prevent manipulation.
Consider additional constraints or logging when the NFT value is changed to enhance transparency.
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.