https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/swan/Swan.sol#L314
There could be DOS vulnerability due to large array when returned using the Swan::getListedAssets
which would make the transaction to revert due to out of gas.
DOS because of transaction running out of gas
Manual review
A possible way could be to limit the amount of addresses per time that the Swan::getListedAssets
function returns.
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.