GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Use of `block.timestamp` for Critical Logic

Root Cause and Impact

  • Root Cause: Reliance on block.timestamp in the _createTokenURI function, which can be slightly manipulated by miners.

  • Impact: While the risk is minimal in this context, it could affect time-sensitive operations if extended.

Vulnerability Details

  • Code Snippet:

    string memory uri = _createTokenURI(msg.sender, block.timestamp, msg.value);
    • Issue: block.timestamp can be manipulated within a 15-second window.

    • Consequence: Potential inaccuracies in recorded donation times.

Recommendations

  • Assess Necessity:

    • Determine if precise timestamp accuracy is critical.

    • If not critical, document the acceptable variance.

  • Use External Time Sources (If Necessary):

    • For high-precision needs, consider using oracles (with caution and understanding the trade-offs).

Updates

Lead Judging Commences

n0kto Lead Judge 12 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.