.NET: fix: inspect for delemiter value before adding headers - #8301
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 241dc909-4fc9-4e7c-8f7c-fb969e4ce2e9
Code Coverage OverviewLanguages: C# C# / code-coverage/dotnetThe overall line coverage in commit 5cc25ed in the Show a line coverage summary of the most covered files.
|
There was a problem hiding this comment.
MAF Automated Review — Iteration 2
Result: No findings
Scope: 3 net-new commit(s): 630ae1922ffa, 617ecacf9667, 5cc25ed5d678
Model: gpt-5.6-sol-fast
Overview
This increment removes attacker-controlled header names from the invalid-name exception, adds direct coverage for CRLF in BodyContentType, and preserves listener cleanup across modern .NET and .NET Framework. Validation still occurs before unchecked header insertion and transport, and the added test verifies the body content-type path cannot reach the message handler. No Critical, High, or Medium defect is supported by the changed lines.
Reviewed the supplied incremental change set across correctness, security/reliability, architecture, and failure behavior.
No publishable findings remained after source verification for this scope.
adding headers without validation can lead to corrupted http requests. This fixes the issue by inspecting for end of line characters