Habr•September 11, 2026•🇷🇺Translated from Russian

API Token Lifecycle: From Issuance to Revocation and Secure Management

The security of API tokens extends far beyond cryptographic signatures. Even a properly signed token using a strong algorithm can be stolen and abused because the signature only prevents modification, not theft. Once an attacker obtains a valid access token, the server typically cannot distinguish the legitimate user from the attacker presenting the stolen credentials.

Stage 1: Token Issuance

Security begins at creation. Public clients such as single-page applications and mobile apps must use the Authorization Code Flow with PKCE rather than legacy implicit flows. PKCE binds the authorization request to a client-generated code_verifier, preventing an attacker who intercepts only the authorization code from completing the exchange. Confidential backend services should use the client_credentials grant with short-lived tokens and regularly rotated secrets stored in dedicated secret-management systems.

Access tokens for browser applications should expire within 5 to 15 minutes. Refresh tokens may live longer, supporting sliding sessions with an absolute maximum lifetime to force re-authentication. Endpoints such as /login, /token, and /oauth/authorize require strict rate limiting that considers account identifiers, device signals, and IP ranges, not just single addresses. Confidential clients can further strengthen authentication by presenting short-lived signed JWT assertions instead of static client secrets.

Stage 2: Client-Side Storage

Storing tokens in localStorage or sessionStorage exposes them to any JavaScript running on the page, including code injected through XSS, compromised npm packages, or supply-chain attacks. HttpOnly cookies marked Secure and SameSite=Lax significantly reduce direct token extraction. The Backend-for-Frontend (BFF) pattern offers even stronger protection by keeping OAuth tokens on the server; the browser receives only an opaque session identifier stored in an HttpOnly cookie. Session data can be maintained in Redis or another secure backend store, enabling centralized rotation, revocation, and monitoring.

Stage 3: Transmission and Usage

Bearer tokens are commonly sent in the Authorization header and require TLS. Cookie-based authentication simplifies client code but necessitates additional CSRF defenses such as synchronizer tokens or strict Origin/Referer validation. Sensitive operations should combine multiple layers rather than relying on any single browser flag.

By following short-lived tokens, atomic refresh-token rotation, HttpOnly cookies or BFF architecture, and comprehensive revocation capabilities, applications can substantially limit the impact of token compromise.

Related articles

Habr•Vulnerabilities & Exploits

Yandex SmartCaptcha Fully Bypassed by Automated Audio Challenge Solver

A detailed reverse engineering report demonstrates that Yandex SmartCaptcha can be solved autonomously without human intervention. The researcher built a pipeline combining Vosk, Whisper large-v3-turbo and a spectral ensemble that passes the audio challenge on three consecutive attempts. The analysis reveals that the widget actually runs across three separate iframes, with all /check requests originating from a hidden backend iframe containing the 551 KB obfuscated PGreed fingerprinting library. Proof-of-Work, canvas fingerprints, mouse telemetry and 104 encrypted device attributes are collected, yet the audio branch proves weaker than intended. The static intro track and limited four-digit vocabulary allow the multi-engine consensus to outperform human listeners on the same distorted audio samples.

Habr•Vulnerabilities & Exploits

Linux 5.10 LTS and 5.15 LTS Reach End of Life with Thousands of Unpatched CVEs

Greg Kroah-Hartman has officially moved the Linux 5.10 LTS and Linux 5.15 LTS kernel branches to end-of-life status in early December 2026. The kernels, which received long-term support since 2020 and 2021 respectively, will no longer receive security updates after five to six years of maintenance. Hundreds of unpatched vulnerabilities remain in the final releases, with 2366 CVEs listed for version 5.10.276 and 2264 CVEs for 5.15.227. Kroah-Hartman strongly recommends migrating to currently supported LTS branches such as Linux 6.1 and Linux 6.6. The next long-term kernel is expected to be Linux 7.3 rather than the later Linux 7.4 release.

Security NEXT•Vulnerabilities & Exploits

Critical OS Command Injection Flaw in Movable Type Already Under Active Exploitation

Six Apart has disclosed a severe vulnerability in its Movable Type content management system that allows remote attackers to execute arbitrary operating system commands. The flaw, tracked as CVE-2026-125615, resides in the installation wizard component mt-wizard.cgi and carries a CVSS v4.0 base score of 9.3 along with a CVSS v3.0 score of 9.8. Security updates addressing the issue were released on December 1, 2026, covering multiple versions of both Movable Type and Movable Type Premium. The vendor has already observed real-world attacks exploiting the vulnerability. All cloud-hosted environments have been automatically updated, while on-premises users are urged to apply the patches immediately. JVN has issued an urgent advisory highlighting the need for rapid remediation.

BoletimSec•Vulnerabilities & Exploits

Dark Web Sellers Offer One-Click Google Account Session Hijacking Exploits

Cybercriminals on underground forums are advertising a one-click method to hijack Google accounts by tricking victims into clicking a link hosted on a legitimate Google domain. The attack targets active sessions rather than passwords, allowing immediate access to all linked Google services once the session is stolen. According to BI.ZONE research covering January to October, such authentication bypass offers represent 7% of zero-day exploit listings. Microsoft products appeared in 32% of all ads, followed by WordPress at 15%, while Fortinet, Linux, and Google services each accounted for 5-7%. Researchers identified potential matches for 70% of the advertised flaws, with 77% of those lacking any public disclosure by November. Nearly half the listings originated in the first half of the year, meaning vendors had more than four months to address issues before public awareness. One advertised malware specifically blocks Windows antivirus updates by exploiting an unpatched flaw in the update mechanism itself.