Skip to content

🐛 fix: Prevent CRLF injection in HTTP headers and parameters#6

Merged
tarampampam merged 4 commits intomasterfrom
validations-improvement
Nov 14, 2025
Merged

🐛 fix: Prevent CRLF injection in HTTP headers and parameters#6
tarampampam merged 4 commits intomasterfrom
validations-improvement

Conversation

@tarampampam
Copy link
Copy Markdown
Owner

@tarampampam tarampampam commented Nov 14, 2025

Added functions to validate HTTP headers, hostnames, and paths against CRLF injection attempts to enhance security. This prevents potential injection attacks by rejecting any input containing CR or LF characters. Updated relevant parsing functions and added comprehensive tests to ensure robustness against such vulnerabilities.

Copilot AI review requested due to automatic review settings November 14, 2025 10:32

This comment was marked as resolved.

This comment was marked as resolved.

@tarampampam tarampampam requested a review from Copilot November 14, 2025 11:07
Repository owner deleted a comment from Copilot AI Nov 14, 2025

This comment was marked as resolved.

Repository owner deleted a comment from Copilot AI Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
Added functions to validate HTTP headers, hostnames, and paths against CRLF injection attempts to enhance security. This prevents potential injection attacks by rejecting any input containing CR or LF characters. Updated relevant parsing functions and added comprehensive tests to ensure robustness against such vulnerabilities.

This comment was marked as resolved.

tarampampam and others added 3 commits November 14, 2025 15:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Renamed the test case to better reflect its purpose of rejecting basic auth credentials that exceed the maximum length. This improves the readability and understanding of the test's intent.
@tarampampam tarampampam merged commit 9a01037 into master Nov 14, 2025
9 checks passed
@tarampampam tarampampam deleted the validations-improvement branch November 14, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants