TempleGold

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

Using CREATE opcode is suspicious to re-org attack.

Summary

The temple protocol allow multiple deployment of spiceAuction using SpiceAuctionFactory::createAuction which will deploy new instance of SpiceAuction and return the address. After deployment the new Instance of SpiceAuction will hold the assets for auction , however If re-orgs occur the assets hold by new spiceAuction will be lost.

Vulnerability Details

As mentioned in the report's title, reorgs can occur in all EVM chains and are most likely on L2's like Arbitrum. Since the protocol's main deployment is on Arbitrum, the following scenario could occur due to reorgs:

  1. Bob deploys a new SpiceAuction using SpiceAuctionFactory::createAuction at block 1234567.

  2. Bob creates the auction, starts it, and transfers the auction tokens at block 1234567.

  3. A block reorg occurs, and block 1234567 is no longer part of the chain.

  4. The assets held by the contract will be lost.

Impact

The re-orgs will result for lost of assets due to CREATE op-code.

Tools Used

Manual Review

Recommendations

use CREATE2 op-code to deploy new auction and store nonce for users in mapping.

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Appeal created

0xaman Submitter
11 months ago
inallhonesty Lead Judge
11 months ago
inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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