Open code423n4 opened 3 years ago
shw
The emitted events are not indexed, making off-chain scripts such as front-ends of dApps difficult to filter the events efficiently.
Referenced code: Visor.sol#L95-L100
None
Add the indexed keyword in each event, e.g., event AddNftToken(address indexed nftContract, uint256 tokenId);.
indexed
event AddNftToken(address indexed nftContract, uint256 tokenId);
sponsor acknowledged We will consider indexing events in our next version
While true, it’s non-critical issue
patch link
Handle
shw
Vulnerability details
Impact
The emitted events are not indexed, making off-chain scripts such as front-ends of dApps difficult to filter the events efficiently.
Proof of Concept
Referenced code: Visor.sol#L95-L100
Tools Used
None
Recommended Mitigation Steps
Add the
indexed
keyword in each event, e.g.,event AddNftToken(address indexed nftContract, uint256 tokenId);
.