CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-26185

Clockwatching: Enumerating Directus Users via Timing Side-Channels

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 12, 2026·6 min read·238 visits

Executive Summary (TL;DR)

Directus implemented a 'stall' mechanism to hide whether a user exists during password resets. However, they validated the 'reset_url' parameter *after* the user lookup but *before* the stall for existing users. This created a 500ms timing discrepancy: existing users return an error immediately (fast), while non-existing users trigger the artificial delay (slow).

A logic error in the Directus password reset flow allows attackers to enumerate valid email addresses by measuring server response times. By manipulating the 'reset_url' parameter, attackers can bypass the application's anti-enumeration timing protections.

The Hook: When Security Features Backfire

There is a special place in hell reserved for timing attacks. They are subtle, statistical, and often born from the very code intended to prevent them. CVE-2026-26185 is a classic example of this irony, affecting Directus, the popular headless CMS.

Directus developers, being security-conscious folks, knew that password reset forms are a goldmine for attackers. If you type in an email and the server says "Email sent!" versus "User not found," you've just handed the attacker a valid username. To combat this, they implemented a stall() function—a utility designed to force all requests to take a standardized amount of time (500ms), masking the database lookup speed.

But here's the catch: implementing a constant-time response is like trying to carry water in a sieve. You have to plug every hole. In this case, they missed one logic branch, turning their shield into a magnifying glass for attackers.

The Flaw: A Matter of Order

The vulnerability lies in the UsersService within the @directus/api package. Specifically, the requestPasswordReset method. The goal of this function is simple: look up a user by email and send them a reset link. If the user doesn't exist, the system waits out the stall timer and throws a generic error. If the user does exist, it proceeds to validate parameters.

The flaw was purely chronological. The code performed the expensive operation (database lookup) before validating the input reset_url.

Here is the logic flow in the vulnerable version:

  1. Start Timer.
  2. Database Lookup: Check if email exists.
  3. If User Missing: Wait 500ms (Stall), then throw Forbidden.
  4. If User Exists: Check if reset_url is in the allow-list. If not, throw InvalidPayload immediately.

Do you see the problem? If I provide a valid email but a garbage URL, the code skips the stall and errors out instantly. If I provide an invalid email and a garbage URL, the code enters the If User Missing block and sleeps for half a second. That 500ms delta is the sound of the server leaking data.

The Code: The Smoking Gun

Let's look at the TypeScript source. This is the diff from commit e69aa7a5248c6e3e822cb1ac354dee295df90b2a. It perfectly illustrates how a simple swap of lines closes the side channel.

Vulnerable Code (Before):

// 1. Start the clock
const timeStart = performance.now();
 
// 2. Look for the user (The leakage source)
const user = await this.getUserByEmail(email);
 
// 3. If no user, STALL then throw
if (user?.status !== 'active') {
    await stall(STALL_TIME, timeStart);
    throw new ForbiddenError();
}
 
// 4. If user exists, check URL. 
// OOPS: This throws immediately, bypassing the stall logic above.
if (url && isUrlAllowed(url, ...) === false) {
    throw new InvalidPayloadError(...);
}

Fixed Code (After):

const timeStart = performance.now();
 
// 1. Check the URL FIRST. 
// If it's bad, fail fast for EVERYONE. 
if (url && isUrlAllowed(url, ...) === false) {
    throw new InvalidPayloadError(...);
}
 
// 2. Now look for the user
const user = await this.getUserByEmail(email);
 
// 3. Standardize timing
if (user?.status !== 'active') {
    await stall(STALL_TIME, timeStart);
    throw new ForbiddenError();
}

By moving the URL validation to the top, the application ensures that a bad reset_url results in a fast rejection regardless of whether the email is in the database. The side channel is closed because the response path is now identical for both valid and invalid users when the URL is malicious.

The Exploit: Measuring the Pulse

Exploiting this does not require complex memory corruption or packet injection. It requires a stopwatch. An attacker can write a simple Python script to enumerate users.

The Attack Chain:

  1. Setup: Identify a Directus instance (e.g., via the Wappalyzer browser extension or looking for /admin endpoints).
  2. Payload Construction: Create a POST request to /auth/password/request.
    • email: The target email you want to verify (e.g., admin@target.com).
    • reset_url: A known blocked URL or just http://evil.com (assuming the server enforces an allow-list).
  3. Execution: Send the request and measure the time to first byte (TTFB).

The Heuristic:

  • ~50ms Response (400 Bad Request): "Jackpot." The user exists. The code hit the database, found the user, hit the URL check, and bailed out early.
  • ~500ms Response (403 Forbidden): "Miss." The user does not exist. The code hit the database, found nothing, and sat in the stall() penalty box for half a second.

This isn't theoretical. With a 500ms difference, you don't even need statistical averaging. A single request is often enough to confirm existence.

The Impact: Why It Matters

Is this going to bring down the banking system? No. But in the reconnaissance phase of an attack, user enumeration is incredibly valuable.

Knowing valid usernames allows an attacker to:

  1. Launch Targeted Phishing: If I know j.doe@company.com is a valid admin, I can craft a specific spear-phishing email targeting them.
  2. Credential Stuffing: Instead of spraying a million passwords at a million potential emails, I can spray 100 common passwords at the 50 emails I know exist. This drastically reduces the noise generated in logs and increases the success rate.
  3. Bypass Lockouts: Attackers can specifically target valid accounts to trigger account lockouts (Denial of Service) without wasting requests on dead accounts.

For a platform like Directus, which often manages critical data for apps and websites, exposing the list of administrators is a significant breach of privacy.

The Fix & Mitigation

The fix is straightforward: Update to Directus v11.14.1 or @directus/api v32.2.0.

If you cannot update immediately, you are in a tight spot. You could technically try to ensure your PASSWORD_RESET_URL_ALLOW_LIST is empty or extremely permissive to prevent the validation error from triggering, but that introduces other security risks (like Host Header injection or open redirects).

The only real cure is the patch. This vulnerability serves as a reminder for developers: Input validation should always happen before resource-intensive or sensitive operations. Validate your inputs at the door, not after you've already invited them into the living room.

Official Patches

DirectusGitHub Commit Fix

Fix Analysis (1)

Technical Appendix

CVSS Score
5.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected Systems

Directus < 11.14.1@directus/api < 32.2.0

Affected Versions Detail

Product
Affected Versions
Fixed Version
Directus
Directus
< 11.14.111.14.1
@directus/api
Directus
< 32.2.032.2.0
AttributeDetail
CWE IDCWE-203 (Observable Discrepancy)
Attack VectorNetwork
CVSS5.3 (Medium)
ImpactInformation Disclosure (User Enumeration)
Exploit StatusProof of Concept (Trivial)
Affected ComponentUsersService.requestPasswordReset

MITRE ATT&CK Mapping

T1589.002Gather Victim Identity Information: Email Addresses
Reconnaissance
T1110Brute Force
Credential Access
CWE-203
Observable Discrepancy

The product behaves differently or sends different responses depending on whether a user account exists, which allows an attacker to enumerate valid usernames.

Known Exploits & Detection

Internal ResearchTiming-based enumeration using Python requests library to measure response delta.

Vulnerability Timeline

Fix committed to repository
2026-01-14
GitHub Advisory Published
2026-02-12
CVE Assigned
2026-02-12

References & Sources

  • [1]GHSA-jr94-gj3h-c8rf
  • [2]NVD - CVE-2026-26185

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•20 minutes ago•CVE-2026-107725
8.7

CVE-2026-107725: Remote Code Execution via Authorization Bypass in Hazelcast Predicates API

CVE-2026-107725 is a critical security bypass in Hazelcast where missing authorization checks in the MapPermission class permit unprivileged clients to issue queries containing aggregators or projections. This architectural oversight allows attackers to run arbitrary code on the cluster servers under the privileges of the active Hazelcast process.

Amit Schendel
Amit Schendel
1 views•7 min read
•about 1 hour ago•CVE-2026-107396
5.4

CVE-2026-107396: Stored Cross-Site Scripting (XSS) in Indico

A stored Cross-Site Scripting (XSS) vulnerability was identified in Indico, an open-source event management system developed at CERN, prior to version 3.3.13. The vulnerability stems from weak URL validation in custom link fields and lack of HTML sanitization during Marshmallow serialization of event notes. This allows authenticated attackers with event modification privileges to inject malicious payloads that execute in the browser of users viewing the event pages or collaborating on notes.

Alon Barad
Alon Barad
2 views•6 min read
•about 2 hours ago•CVE-2026-107397
4.4

CVE-2026-107397: Stored Cross-Site Scripting via Collaborative Editor Conflict Resolution and Custom Link Fields in Indico

A technical analysis of CVE-2026-107397, a stored Cross-Site Scripting (XSS) vulnerability in Indico's collaborative notes editor and custom link generation fields. Prior to version 3.3.13, Marshmallow serialization schemas omitted HTML sanitization during conflict resolution, and form validators failed to enforce strict URI schemes, enabling authenticated low-privilege attackers to execute arbitrary JavaScript.

Alon Barad
Alon Barad
0 views•7 min read
•about 3 hours ago•CVE-2026-107395
4.3

CVE-2026-107395: Missing Authorization in Indico Legacy Session Export API

An authorization bypass vulnerability exists in the legacy session export API of Indico, an open-source event management system developed at CERN. Due to a missing object-level access check, authenticated users can bypass configuration-level restrictions to extract private session metadata (including session titles, descriptions, and list of conveners) from events that they are otherwise authorized to view.

Alon Barad
Alon Barad
8 views•5 min read
•about 4 hours ago•CVE-2026-107394
6.8

CVE-2026-107394: Server-Side Request Forgery Bypass via Parser Differential in Indico

An incomplete Server-Side Request Forgery (SSRF) validation check in Indico prior to version 3.3.13 allows authenticated event organizers to bypass outbound network restrictions. By utilizing backslash characters within crafted URLs, attackers can exploit a parser differential between the application's validator and the downstream HTTP client library to access internal network resources.

Alon Barad
Alon Barad
6 views•6 min read
•about 5 hours ago•CVE-2026-107717
6.5

CVE-2026-107717: Chat Role Injection and Prompt Boundary Bypass in Banks Library

CVE-2026-107717 represents a critical prompt boundary bypass and chat role injection vulnerability in the Banks Python package (versions prior to 2.5.0). The library parses generated template outputs line-by-line, attempting to validate each segment as a JSON-serialized ChatMessage object without validating the source boundaries of the text. If an application integrates user input directly into a prompt template, a remote, unauthenticated attacker can supply multi-line inputs with structured JSON payloads. This input is then parsed as high-privilege system instructions or tool execution responses, completely hijacking downstream Large Language Model behavior.

Alon Barad
Alon Barad
8 views•6 min read