TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: high
Invalid

Smart contracts may bypass the teleport restriction

Summary

TempleGold.send()allows sending tokens only to the same address as the sender's.
This can be bypassed by a smart contract.

Vulnerability Details

A user may deploy smart contract A on chain A and smart contract B on chain B with the same address, but different code.

Then, the code will allow teleporting tokens from A -> B. Now smart contract B, which has a totally different code than smart contract A, has access to the TempleGold tokens.

Impact

Bypassing of the bridging restriction.

Tools Used

Manual Review

Recommendations

Restrict the bridging to EOAs only.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.