The TokenFactory contract uses a mapping from token symbols to addresses (s_tokenToAddress). However, it does not prevent the reuse of symbols. If the same symbol is used more than once, the new address will overwrite the previous one in the mapping. This could lead to confusion or misrepresentation of tokens, especially if symbols are expected to uniquely identify a token.
If the owner of TokenFactory deploy a new contract using an already used symbol, accidentialy or not, the value will be overwritten and the previous mapping will be lost.
This can lead to the loss of mappings.
Manual analysis
Add checks to revert if a symbol is already used before deploying the new contract in deployToken function.
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.