-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEC-2024-0001: host header rXSS in keter
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
```toml | ||
[advisory] | ||
id = "HSEC-2024-0001" | ||
cwe = [79] | ||
keywords = ["http", "xss", "rxss"] | ||
|
||
[[references]] | ||
type = "FIX" | ||
url = "https://github.com/snoyberg/keter/pull/246" | ||
|
||
[[affected]] | ||
package = "keter" | ||
cvss = "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N" | ||
declarations."Keter.Proxy.toResponse" = ">= 0.3.4 && < 1.0.1" | ||
declarations."Keter.Proxy.unknownHostResponse" = ">= 1.0.1 && < 1.8.4" | ||
|
||
[[affected.versions]] | ||
introduced = "0.3.4" | ||
fixed = "1.8.4" | ||
``` | ||
|
||
# Reflected XSS vulnerability in keter | ||
|
||
Keter is an app-server/reverse-proxy often used with webapps build on Yesod web-framework. | ||
|
||
In the logic handling VHost dispatch, Keter was echoing back `Host` header value, unescaped, | ||
as part of an HTML error page. This constitutes a reflected-XSS vulnerability. Although | ||
not readily exploitable directly from a browser (where `Host` header can't generally assume | ||
arbitrary values), it may become such in presence of further weaknesses in components | ||
upstream of Keter in the http proxying chain. Therefore, AC:High in CVSS evaluation. |