Skip to content
Audit finding Beginner

The code comment to BOOSTRAP_PHASE_DURATION is incorrect

The code comment for the BOOSTRAP_PHASE_DURATION variable incorrectly describes it as 'The time between rounds' when it actually represents the duration of the bootstrap phase. This is a documentation error with no direct security impact.

h2134 Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#41758 [SC-Insight] The code comment to `BOOSTRAP_PHASE_DURATION` is incorrect

Submitted on Mar 18th 2025 at 06:20:12 UTC by @h2134 for Audit Comp | Yeet

Description

Brief/Intro

The code comment to BOOSTRAP_PHASE_DURATION is incorrect.

Vulnerability Details

The code comment to BOOSTRAP_PHASE_DURATION is as below:

Solidity
    uint256 public BOOSTRAP_PHASE_DURATION; // The time between rounds

This comment is incorrect as BOOSTRAP_PHASE_DURATION is the duration of bootstrap phrase, not the time between rounds.

We believe the code comment is wrongly copied from COOLDOWN_TIME.

Solidity
    uint256 public COOLDOWN_TIME; // The time between rounds

Impact Details

Incorrect documentation.

References

https://github.com/immunefi-team/audit-comp-yeet/blob/da15231cdefd8f385fcdb85c27258b5f0d0cc270/src/Yeet.sol#L106

Proof of Concept

Proof of Concept

This comment is incorrect as BOOSTRAP_PHASE_DURATION is the duration of bootstrap phrase, not the time between rounds.

The original report as published on Immunefi, by h2134. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a copy-paste error from the comment for COOLDOWN_TIME.

Impact

Incorrect documentation only; no security impact is claimed.

What the attacker needed

None

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report points out that a comment in the code is wrong. The comment says a variable is 'the time between rounds', but the variable actually controls how long the bootstrap phase lasts. It's like a label on a switch being incorrect, which could confuse someone reading the code.

More by h2134

View all

9 more disclosed reports, best first.

More from Yeet

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.