cvelo
P3 · MediumCVSS 5.3

OTS Expire override allows creation of non-expiring secrets despite configured maximum TTL

  • GHSA-6ppq-9x26-5r92

Summary

An unauthenticated remote attacker can use the expire query parameter on OTS's secret creation endpoint to override the configured maximum lifetime. When the server sets a positive SECRET_EXPIRY, sending expire=0 creates a secret with no expiration time, defeating the operator's retention policy for unread secrets. Secrets that are read are still deleted as normal, but unread ones can persist indefinitely. The issue affects both the Redis-backed and in-memory storage backends, since a zero expiration results in no expiry being set in either. The record is rated CVSS 5.3 and is not listed in the CISA known exploited vulnerabilities catalog.

AI summary · verify against the vendor advisory

Description

### Summary OTS allows clients to override the configured secret expiry through the `expire` query parameter on the secret creation endpoint. When a server is configured with a positive `SECRET_EXPIRY` value, sending `expire=0` bypasses the configured maximum TTL and creates a secret without an expiration time. ### Impact An unauthenticated remote attacker can create secrets that do not expire automatically, even when the instance operator configured a maximum secret lifetime through `SECRET_EXPIRY`. This bypasses the configured retention policy for unread secrets. The secret is still removed when it is read successfully, but if it is never read, it can remain stored indefinitely. The issue affects both Redis-backed and in-memory storage. In Redis, a zero expiration is passed to go-redis `Set`, which creates the key without an expiration. In the memory backend, zero duration similarly results in no expiry timestamp being set.

Text from the GitHub Advisory record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • github.com/Luzifer/otsGo

    Affected versionsFixed in
    before 1.21.81.21.8

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.