github.com/Luzifer/ots
Affected
- introduced
0, fixed1.21.5(semver)
Fixed versions
1.21.5
Fix
- Fixed version
1.21.5go get github.com/Luzifer/[email protected]
Advisory
Also known as: GO-2026-5413
ots has a negative expire override that can bypass its secret retention policy
Summary
The /api/create endpoint accepted negative expire query values. For the memory storage backend, negative values were passed to secret creation as a negative duration and treated as no expiry, allowing callers to create secrets that persisted longer than intended.
Impact
Unauthenticated users could bypass configured retention expectations for secrets they create by sending POST /api/create?expire=-1.
This does not allow reading or modifying secrets created by other users. Secrets remain one-time-read and, in the normal web flow, client-side encrypted.
Affected versions
Versions up to and including v1.21.4 are affected.
Patched versions
Fixed in v1.21.5.
Workarounds
Disable expiry overrides via disableExpiryOverride: true until upgrading.
Credit
Reported by Chai Cheng Xun via email.
Medium Basis: The source's own band: MODERATE
0, fixed 1.21.5 (semver)1.21.5
1.21.5go get github.com/Luzifer/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0