Skip to content

OTP-20270 - #11545

Merged
Whaileee merged 2 commits into
erlang:masterfrom
Whaileee:whaileee/OTP-20270
Sep 1, 2026
Merged

OTP-20270#11545
Whaileee merged 2 commits into
erlang:masterfrom
Whaileee:whaileee/OTP-20270

Conversation

@Whaileee

Copy link
Copy Markdown
Contributor

No description provided.

Whaileee added 2 commits July 27, 2026 15:21
  "Content-Length : 6" (space before colon) was silently dropped by
  key_value/1, causing content-length to default to "0". The orphaned
  body bytes were then reinterpreted as the next pipelined request via
  body_data/2, enabling CL.0 request smuggling/desync.

  RFC 7230 Section 3.2.4 states that no whitespace is allowed between
  the header field-name and colon, and such requests must be rejected.

  Return {error, whitespace_before_colon} from key_value/1 instead of
  undefined for this case. Handle it in parse_headers/7 by returning
  {error, {bad_request, 400, _}, Version}.
@Whaileee Whaileee self-assigned this Aug 27, 2026
@Whaileee Whaileee added the team:PS Assigned to OTP team PS label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CT Test Results

Tests are running... https://github.com/erlang/otp/actions/runs/33105810132

Results for commit 4eff6a5

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

  • No CT logs found
  • No HTML docs found
  • No Windows Installer found

// Erlang/OTP Github Action Bot

@Whaileee
Whaileee merged commit 7df6e1d into erlang:master Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:PS Assigned to OTP team PS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant