Advisory

GHSA-h5fq-653g-gxrm

Also known as: GO-2026-5413

Summary

ots has a negative expire override that can bypass its secret retention policy

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-05 17:20 UTC
Modified
2026-07-21 14:49 UTC

Affected packages and fixes

github.com/Luzifer/ots

Go · All systems

Affected

  • introduced 0, fixed 1.21.5 (semver)

Fixed versions

1.21.5

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences