The getUserCollateralValue
function iterates over all NFTs deposited by a user, risking gas exhaustion and denial of service.
The function loops through all NFTs without a cap:
Gas Exhaustion: Users with many NFTs cannot interact with the protocol because it will be gas expensive or will even revert with a gas limit error.
Manual review
The protocol can set a maximum number of NFTs a user can hold or use pagination to get user NFTs (start and end)
LightChaser L-36 and M-02 covers it.
LightChaser L-36 and M-02 covers it.
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.