mediumCVSS 5.4Vulnerability

CVE-2026-84321

### Summary Standalone short tokens issued for WebSocket and explicit-token authentication can survive administrative revocation in cache. If the same account is later re-enabled before the cache entry expires, the deleted short token becomes valid again. ### Details `GenerateShortToken()` creates an `AuthToken` row that contains only `ShortToken` and no long `Token`. `DeleteUserTokens()` removes database rows, but when clearing caches it only invalidates entries where `authToken.Token != ""`. This leaves standalone short-token cache entries behind. `GetTokenUserByShortToken()` checks that cache first and then loads the user by ID, so the stale short token becomes usable again if the account status is restored to `true`. Relevant code paths: - [internal/user/user.go](/home/kali/Desktop/bounty/nginx-ui/internal/user/user.go:43) - [internal/user/user.go](/home/kali/Desktop/bounty/nginx-ui/internal/user/user.go:118) - [internal/user/user.go](/home/kali/Desktop/bounty/nginx-ui/internal/user/user.go:204) - [api/user/short_token.go](/home/kali/Desktop/bounty/nginx-ui/api/user/short_token.go:13) - [internal/middleware/middleware.go](/home/kali/Desktop/bounty/nginx-ui/internal/middleware/middleware.go:82) ### PoC This was verfied locally in an isolated environment with a temporary package-level harness that exercised the real token issuance, revocation, cache, and re-authentication paths. What the executed test did: 1. Created an enabled user in a temporary SQLite database. 2. Called the real `GenerateShortToken(user.ID)` function to issue a standalone short token. 3. Verified that the token authenticated successfully and was present in the short-token cache. 4. Disabled the user and called the real `DeleteUserTokens(user.ID)` function. 5. Verified that the database token rows were removed. 6. Verified that the short-token cache entry still existed after `DeleteUserTokens`. 7. Re-enabled the same user. 8. Reused the previously deleted short token via the real `GetTokenU

Properties

severity
medium
summary
Nginx UI: Standalone short tokens survive administrative revocation in cache and authenticate again after account re-enable
cvss_score
5.4
retrieved_at
2026-10-15T22:56:51+00:00
ghsa_published
2026-10-15T20:14:01Z
source_url
https://github.com/advisories/GHSA-wq4w-vwvq-q3x9
ghsa_updated
2026-10-15T20:14:02Z
ghsa_id
GHSA-wq4w-vwvq-q3x9
last_source
GitHub Advisory Database
cve_id
CVE-2026-84321
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
signal_observed_at
2026-10-15T22:56:51+00:00
is_ghsa_only
false

Related Entities (4)

VULNERABLE_TO (1)

←[Software]go/github.com/0xJacky/Nginx-UI

AFFECTS (1)

→[Software]go/github.com/0xJacky/Nginx-UI

HAS_WEAKNESS (1)

→[Weakness]Insufficient Session Expiration

REPORTED_BY (1)

→[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-84321 (CVSS 5.4) — Ninja Signal Threat Intelligence | Ninja Signal