Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 2 min read

GHSA-6PPQ-9X26-5R92: GHSA-6ppq-9x26-5r92: Secret Retention Policy Bypass via Zero Expiry Override in Luzifer OTS

GHSA-6ppq-9x26-5r92: Secret Retention Policy Bypass via Zero Expiry Override in Luzifer OTS Vulnerability ID: GHSA-6PPQ-9X26-5R92 CVSS Score: 5.3 Published: 2026-12-03 An input validation flaw in github.com/Luzifer/

GHSA-6ppq-9x26-5r92: Secret Retention Policy Bypass via Zero Expiry Override in Luzifer OTS

Vulnerability ID: GHSA-6PPQ-9X26-5R92
CVSS Score: 5.3
Published: 2026-12-03

An input validation flaw in github.com/Luzifer/ots prior to version 1.21.8 allows unauthenticated remote attackers to bypass configured secret expiration policies. By supplying an expire=0 query parameter during secret creation, clients force the server to store secrets without a time-to-live (TTL) in both Redis and in-memory storage backends. This invalidates administrative data retention policies and permits unbounded storage consumption via unread secrets.

TL;DR

Luzifer OTS versions prior to 1.21.8 fail to reject or override expire=0 query parameters when a positive SECRET_EXPIRY is configured, allowing unauthenticated users to create non-expiring secrets and bypass server retention rules.

⚠️ Exploit Status: POC

Technical Details

  • Vulnerability ID: GHSA-6ppq-9x26-5r92
  • Weakness Class: CWE-20 (Improper Input Validation) / CWE-863 (Security Feature Bypass)
  • CVSS v3.1 Score: 5.3 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
  • Attack Vector: Network (Unauthenticated HTTP POST to /api/create?expire=0)
  • Affected Component: github.com/Luzifer/ots (apiServer.parseExpiryOverride in api.go)
  • Affected Versions: < 1.21.8
  • Patched Version: 1.21.8
  • Impact: Bypass of SECRET_EXPIRY retention policy; creation of non-expiring storage entries

Affected Systems

  • github.com/Luzifer/ots
  • github.com/Luzifer/ots: >= 0, < 1.21.8 (Fixed in: 1.21.8)

Code Analysis

Commit: f19286c

fix(sec): zero expiry creates non-expiring storage entries / resolves GHSA-6ppq-9x26-5r92

diff --git a/api.go b/api.go
index 2bd5536c..33eb4f27 100644
--- a/api.go
+++ b/api.go
@@ -211,6 +211,10 @@ func (apiServer) parseExpiryOverride(r *http.Request, expiry int64) (int64, erro
        return 0, errors.New("expiry exceeds maximum duration")
    }

+   if ev == 0 && cfg.SecretExpiry > 0 {
+       return cfg.SecretExpiry, nil
+   }
+
    if ev < expiry || cfg.SecretExpiry == 0 {
        return ev, nil
    }

Commit: 035019e

Secondary security fix commit included concurrently in release v1.21.8 (GHSA-92r4-rpw3-7cwm)

Mitigation Strategies

  • Upgrade Luzifer OTS to version 1.21.8 or higher to enforce fallback to SECRET_EXPIRY when expire=0 is provided.
  • Disable client-side expiration overrides globally using the --disable-expiry-override flag or DISABLE_EXPIRY_OVERRIDE=true environment variable.
  • Configure reverse proxy or WAF rules to reject HTTP requests to /create or /api/create containing the query parameter expire=0.
  • Audit the Redis backing datastore for persistent keys (TTL = -1) and apply expiration policies or delete stale entries.

Remediation Steps:

  1. Pull the patched container image (ghcr.io/luzifer/ots:v1.21.8) or recompile the Go binary from tag v1.21.8.
  2. Verify that SECRET_EXPIRY is configured to a positive integer matching your organization's retention policy.
  3. If running a version prior to 1.21.8 temporarily, set DISABLE_EXPIRY_OVERRIDE=true in the service environment and restart the OTS process.
  4. Test the endpoint by sending a POST request to /api/create?expire=0 and verifying that the returned JSON contains a non-null expires_at timestamp.

References

Read the full report for GHSA-6PPQ-9X26-5R92 on our website for more details including interactive diagrams and full exploit analysis.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.