LDAP sign-in: response time differs for unknown and existing accounts (enumeration by timing) #991

Open
opened 2026-10-24 16:13:14 +00:00 by Cordy · 1 comment
Owner

Found in the #985 research (research-985-1 §9h, research-985-2 pitfall 8).

An unknown login name costs one search; an existing one costs the search plus a bind (and, for a correct password refused as not allowed, extra searches). The answer text is the same, the time is not. ASVS 5.0 6.3.8 (L3) asks that valid users cannot be deduced, including by timing. INFERRED from code; size UNVERIFIED.

Plan.

  1. Measure first: 50 sign-ins each for (a) unknown name, (b) existing name with a wrong password, (c) correct password not allowed, against Samba and a Windows DC. Report median and spread.
  2. If the difference is clearly measurable over the network: one constant floor for every 401 on the form and on Basic (for example the slowest normal path), or a dummy bind for unknown names.

Interacts with #742: the throttle is per instance, so N instances give N times the attempt budget for any timing oracle.

Found in the #985 research (research-985-1 §9h, research-985-2 pitfall 8). An unknown login name costs one search; an existing one costs the search plus a bind (and, for a correct password refused as not allowed, extra searches). The answer text is the same, the time is not. ASVS 5.0 6.3.8 (L3) asks that valid users cannot be deduced, including by timing. INFERRED from code; size UNVERIFIED. **Plan.** 1. Measure first: 50 sign-ins each for (a) unknown name, (b) existing name with a wrong password, (c) correct password not allowed, against Samba and a Windows DC. Report median and spread. 2. If the difference is clearly measurable over the network: one constant floor for every 401 on the form and on Basic (for example the slowest normal path), or a dummy bind for unknown names. Interacts with #742: the throttle is per instance, so N instances give N times the attempt budget for any timing oracle.
Author
Owner

The measurement is tracked in #1005, section A. Note from the v0.6.354 review: the #992 cache answers a repeated wrong password for an existing AD account without asking the directory, while an unknown name always costs a search. Include that case in the measurement.

The measurement is tracked in #1005, section A. Note from the v0.6.354 review: the #992 cache answers a repeated wrong password for an existing AD account without asking the directory, while an unknown name always costs a search. Include that case in the measurement.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#991
No description provided.