The `tokenURI()` function uses `abi.encodePacked()` with dynamic types (strings) when constructing the token metadata JSON. This can lead to hash collisions when different inputs produce the same packed encoding.
Likelihood:
When we have something like `abi.encodePacked("a", "bc")` that produces the same result as `abi.encodePacked("ab", "c")`.
Impact:
While in this specific case the impact is limited since the strings are mostly hardcoded, using `abi.encodePacked()` with dynamic types is a dangerous pattern that can lead to hash collisions in other contexts.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.