Skip to main content
Menu
Advisories

Redis storage backend allows non-atomic one-time secret retrieval under concurrent requests

GHSA-92R4-RPW3-7CWMPublished Updated GitHub

Description

The Redis storage backend performs secret retrieval and deletion as two separate operations (GET followed by DEL). Under highly concurrent access to the same secret ID, more than one request may read the secret before it is deleted. This can violate the intended one-time-read property for Redis-backed deployments.

Impact

This issue affects deployments using the Redis storage backend.

The issue is theoretically exploitable by racing multiple requests against the same secret ID. In local laboratory testing, concurrent requests can retrieve the same secret more than once because deletion is not atomic.

In real-world conditions, exploitation is not considered practical for confidentiality impact unless the attacker already knows the secret URL/ID and can precisely time requests within the very small interval between Redis GET and DEL, or can themselves issue concurrent requests for a secret they already possess access to. Therefore, this is best treated as a violation of the one-time-read guarantee under artificial race conditions rather than a practical remote disclosure vulnerability.

Attack Requirements

An attacker would need:

  • Knowledge of the secret ID / secret URL
  • Network access to the OTS instance
  • Ability to issue highly concurrent requests, or to race the legitimate recipient’s read request within a very small timing window
  • The attacker cannot discover arbitrary secrets through this issue.

Affected versions

References

GitHub · Luzifer/ots