Skip to content

Commit

Permalink
viperutil: Remove potential cross site reflecting issue (#13483)
Browse files Browse the repository at this point in the history
It's possible to inject HTML / Javascript in the format parameter which
means you can do a self XSS. Not a huge immediately issue as it's only
self XSS, but we should fix it nonetheless.

Signed-off-by: Dirkjan Bussink <[email protected]>
  • Loading branch information
dbussink authored Jul 14, 2023
1 parent 344280a commit f3d09d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/viperutil/debug/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ func HandlerFunc(w http.ResponseWriter, r *http.Request) {
return
}
default:
http.Error(w, fmt.Sprintf("unsupported config format %s", format), http.StatusBadRequest)
http.Error(w, "unsupported config format", http.StatusBadRequest)
}
}

0 comments on commit f3d09d4

Please sign in to comment.