Overview
- Description
- NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack. This 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 in some form. A malicious user can add newlines to their input (usually in encoded form) and "inject" those newlines into the returned HTTP response. This capability allows users to work around security headers and HTTP/1.1 framing headers by injecting entirely false responses or other new headers. The injected false responses may also be treated as the response to subsequent requests, which can lead to XSS, cache poisoning, and a number of other flaws. This issue was resolved by adding validation to the HTTPHeaders type, ensuring that there's no whitespace incorrectly present in the HTTP headers provided by users. As the existing API surface is non-failable, all invalid characters are replaced by linear whitespace.
- Source
- cve@forums.swift.org
- NVD status
- Analyzed
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 7.5
- Impact score
- 3.6
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Severity
- HIGH
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:apple:swiftnio:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "7DE92207-1814-4053-ABD1-36CFF3BB8BF8", "versionEndExcluding": "2.29.1" }, { "criteria": "cpe:2.3:a:apple:swiftnio:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "42384BB2-84B3-4DCB-A215-4F21D058A833", "versionEndExcluding": "2.39.1", "versionStartIncluding": "2.30.0" }, { "criteria": "cpe:2.3:a:apple:swiftnio:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "F1D8C095-CF99-4ED4-96C8-DD0396D5509D", "versionEndExcluding": "2.42.0", "versionStartIncluding": "2.40.0" } ], "operator": "OR" } ] } ]