Skip to content

HTTP/1.1 RFC validation gaps found by Http11Probe #47

Closed

Description

@EdmondDantes

The weekly Http11Probe run (see docs/http11probe-report.md, score 143/161) surfaced real RFC 9110/9112 validation gaps — the server returns 200 where it must reject. These are genuine server behaviours (parser/protocol layer), not test-harness artifacts, and several are request-smuggling-adjacent.

Host validation (RFC 9112 §3.2 / 9110 §7.2) — all return 200, must be 400

  • RFC9112-7.1-MISSING-HOST — request with no Host header.
  • RFC9110-5.4-DUPLICATE-HOST — duplicate Host with different values (smuggling vector).
  • COMP-DUPLICATE-HOST-SAME — duplicate Host with identical values.
  • COMP-HOST-WITH-USERINFO — Host: user@host.
  • COMP-HOST-WITH-PATH — Host containing a path component.
  • COMP-HOST-EMPTY-VALUE — empty Host value.
  • SMUG-MULTIPLE-HOST-COMMA — comma-joined Host values.

Other Must-level gaps

  • SMUG-TE-EMPTY-VALUE — empty Transfer-Encoding value should be rejected (smuggling).
  • COMP-DATE-HEADER — origin responses must include a Date header; we emit none.
  • COMP-HEAD-NO-BODY — verify HEAD responses carry no message body.
  • COMP-METHOD-CONNECT (Should) — CONNECT to an origin should be rejected (400/405/501).
  • COMP-ASTERISK-WITH-GET — asterisk-form target with GET should be rejected.

Lower priority

  • COMP-HTTP12-VERSION (May) — HTTP/1.2 should be treated as 1.x-compatible (we 400/close).
  • Warnings (40) are mostly tolerant 400 or 2xx checks where 200 is acceptable — see the report; the caching-304 warns are probe-harness limits (the generic probe target has no conditional-request logic; the real static handler does 304).

Notes

  • The chunked/POST 2xx + echo "failures" in the report are harness limitations (the probe target tests/bench/probe_server.php answers a fixed body, not an echo) — not server bugs. Tracked separately under test-infra continuation.
  • Source of truth: docs/http11probe-report.md (refreshed weekly by .github/workflows/chaos.yml).

Acceptance

  • Host validation: missing / duplicate / userinfo / path / empty / comma-joined → 400
  • Empty Transfer-Encoding → 400
  • Date response header emitted
  • HEAD carries no body (verified)
  • CONNECT to origin rejected
  • Http11Probe score baseline raised in .github/workflows/chaos.yml as gaps close

Activity

  1. self-assigned this
    on May 29, 2026
  2. added
    bug
    on May 29, 2026
  3. added theissue type on May 29, 2026
  4. added this to the Next milestone on May 29, 2026
  5. added 5 commits that reference this issue on May 29, 2026
  6. EdmondDantes commented on May 29, 2026

    @EdmondDantes
    ContributorAuthor

    Done. Http11Probe 143 → 161/161 (0 failed).

    Merged:

    The 16 remaining probe warnings are RFC-acceptable (200 allowed; stricter optional). Two items consciously left:

    • COMP-HTTP12-VERSION (May) — HTTP/1.2 → 400 not 200/505; llhttp rejects the version before our handler and uses the same errno for malformed versions, so a clean 505 isn't reachable without llhttp leniency.
    • RFC9112-3-MULTI-SP-REQUEST-LINE (Should) — llhttp consumes request-line spacing before our callbacks; not detectable post-parse.

    Both are low-priority and 200/400 are accepted by the probe. Remaining test-infra work continues in #48.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions