iis_shortnames: false positives behind nondeterministic CDN/WAF responses
Maintainers usually reply within 2 days
@liquidsec is already working on this.
Since Oct 21, 2026.
Assessment
This issue has not been assessed yet.
Description
Summary
iis_shortnames produces false positive detections, and with detect_only: false it goes on to "enumerate" garbage shortnames, when the target sits behind a CDN/WAF whose responses are nondeterministic. The status codes being compared are generated by the edge, not by IIS, so any status flip between the control and test requests gets read as the shortname oracle.
Observed behavior
Two patterns, both on non-IIS targets:
- Akamai: every response carries
Server: AkamaiGHost. The same URL alternates between a 403 "Access Denied" WAF page, a 500 "Internal Server Error - Read" (origin read timeout) page, and tarpitted connections that hang until timeout. A single payload like*E*~1*/a.aspxcan return 500 once and then time out three times in a row. - Cloudflare (managed challenge): early requests pass through to the origin, then Cloudflare starts serving a 403 "Just a moment..." challenge page with
cf-mitigated: challenge. Response times swing between tens of milliseconds and ~11 seconds.
Why exploitation produces garbage
Once detect() settles on an affirmative status code (e.g. 403), every request in solve_valid_chars that happens to land on a WAF 403 counts as a confirmed character. The only sanity check is len(confirmed_chars) >= len(valid_chars) - 4, which catches "everything matched" but not "a random third matched". The recursive solver then builds shortnames out of that noise and emits them as URL_HINTs.
Related bugs in the module
solve_shortname_recursivebuilds its batch kwargs as{"method": method}only, with noallow_redirects=False, timeout, or retries.detect()andsolve_valid_charsboth disable redirects, so the recursive solver compares a post-redirect status against an affirmative code recorded without following redirects.- In the "HTTP Body Error Message" branch of
detect(), the detection tuple is appended beforetechniqueis assigned, so it is recorded withtechnique=None. get_waf_strings()doesn't cover the Cloudflare managed challenge ("Just a moment...") or the Akamai Access Denied page, andiis_shortnamesdoesn't use it at all.
Proposed fix
- Reject edge-generated responses: treat responses matching
get_waf_strings()(extended with the Cloudflare challenge and Akamai pages, plus a header check forcf-mitigated) as non-signals in bothdetect()and every exploitation comparison, the same way 502/503/504 are already skipped. Extending the shared list also benefitshttp,webbrute,bypass403, etc. - Stability check during exploitation: before recursing, re-test each confirmed character along with a random control that cannot exist. Drop characters that don't reproduce, and abort if the control ever comes back affirmative. This is the generic defense against noise that no fingerprint list will fully cover.
- Consistent request kwargs across all request sites, and fix the
techniqueordering bug. - Tests: mock a server that returns a random mix of WAF 403s and 500s, and assert no
FINDINGand noURL_HINTare produced. The existing positive test should continue to pass.
- Dominant language
- Python
- Stars
- 10.9k
- Forks
- 959
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 84
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blacklanternsecurity/bbot
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blacklanternsecurity/bbot#3679 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
blacklanternsecurity/bbot#3678 ·
Maintainers usually reply within 2 days
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
blacklanternsecurity/bbot#3671 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 22/100
blacklanternsecurity/bbot#3646 · 2 reactions ·
Maintainers usually reply within 2 days
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 58/100
blacklanternsecurity/bbot#3630 · 1 assignee ·
Maintainers usually reply within 2 days
All issues in blacklanternsecurity/bbot
Similar issues
-
eegprep-lean: set channel types from the Zarr group's channel_typePossibly taken @claude claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sccn/eegprep#668 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Link Checker ReportOpenBot Type: Bug Type: Documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
area: ci enhancement perceived difficulty: 1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainers usually reply within 1 day