PT-2022-21119

CVE-2022-3215

·

Published

2022-09-28

·

Updated

2025-05-20

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions NIOHTTP1 (affected versions not specified) SwiftNIO (affected versions not specified)
Description The issue occurs when a HTTP/1.1 server accepts user-generated input from an incoming request and reflects it into a HTTP/1.1 response header. A malicious user can add newlines to their input and "inject" those newlines into the returned HTTP response, allowing them to work around security headers and HTTP/1.1 framing headers. This can lead to XSS, cache poisoning, and other flaws.
Recommendations For NIOHTTP1, consider adding validation to the HTTPHeaders type to ensure no whitespace is incorrectly present in the HTTP headers provided by users. For SwiftNIO, consider adding a default channel handler that polices outbound headers to prevent HTTP Response Injection attacks. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Found an issue in the description? Have something to add? Feel free to write us 👾