Skip to content

Commit e3d35f0

Browse files
1 parent 77fa167 commit e3d35f0

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-h5fq-653g-gxrm",
4+
"modified": "2026-05-05T17:20:36Z",
5+
"published": "2026-05-05T17:20:36Z",
6+
"aliases": [],
7+
"summary": "ots has a negative expire override that can bypass its secret retention policy",
8+
"details": "## Summary\n\nThe `/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.\n\n## Impact\n\nUnauthenticated users could bypass configured retention expectations for secrets they create by sending `POST /api/create?expire=-1`.\n\nThis 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.\n\n## Affected versions\n\nVersions up to and including v1.21.4 are affected.\n\n## Patched versions\n\nFixed in v1.21.5.\n\n## Workarounds\n\nDisable expiry overrides via `disableExpiryOverride: true` until upgrading.\n\n## Credit\n\nReported by Chai Cheng Xun via email.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V3",
12+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "Go",
19+
"name": "github.com/Luzifer/ots"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "1.21.5"
30+
}
31+
]
32+
}
33+
],
34+
"database_specific": {
35+
"last_known_affected_version_range": "<= 1.21.4"
36+
}
37+
}
38+
],
39+
"references": [
40+
{
41+
"type": "WEB",
42+
"url": "https://github.com/Luzifer/ots/security/advisories/GHSA-h5fq-653g-gxrm"
43+
},
44+
{
45+
"type": "WEB",
46+
"url": "https://github.com/Luzifer/ots/commit/3511bd18a2bec75bd9c6b4d513f2a90ccf4209b7"
47+
},
48+
{
49+
"type": "PACKAGE",
50+
"url": "https://github.com/Luzifer/ots"
51+
},
52+
{
53+
"type": "WEB",
54+
"url": "https://github.com/Luzifer/ots/releases/tag/v1.21.5"
55+
}
56+
],
57+
"database_specific": {
58+
"cwe_ids": [
59+
"CWE-20"
60+
],
61+
"severity": "MODERATE",
62+
"github_reviewed": true,
63+
"github_reviewed_at": "2026-05-05T17:20:36Z",
64+
"nvd_published_at": null
65+
}
66+
}

0 commit comments

Comments
 (0)