OTS Redis storage backend allows non-atomic one-time secret retrieval under concurrent requests
- GHSA-92r4-rpw3-7cwm
Description
### Summary 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.
Text from the GitHub Advisory record.
Recommendation
github.com/Luzifer/ots
- If you run a version before 1.21.8update to 1.21.8 or latergithub.com/Luzifer/ots 1.21.8 on its registry (opens in a new tab)
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 versions Fixed in before 1.21.8 1.21.8
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.