Skip to content
Security
← V4 known risks
V4-21Not ratedOpenSpending limits

Spending-limit months are fixed at 30 days

A monthly limit resets every 30 days and drifts from the calendar by five to six days a year.

Why this is a risk, not a vulnerability · Documented behavior

Documented period length. The limit is enforced exactly as defined. What is a vulnerability
Program
Squads V4
Source
Trail of Bits (Appendix C)
Code
View at dcac867

Period::Month is defined as 30 days. Resets advance in whole periods from the last reset, so a “monthly” limit drifts against calendar months.

What to do

  • Use the actual next-reset time, computed from last_reset, rather than assuming the first of the month.