From 38682330e1ec3f3af95f9436640358b2d9e4a965 Mon Sep 17 00:00:00 2001 From: rekter0 <58881147+rekter0@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:12:03 +0100 Subject: [PATCH] fix cross site scripting xss due to printing response from Net::XWhois without proper checks --- wwwroot/cgi-bin/plugins/hostinfo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/cgi-bin/plugins/hostinfo.pm b/wwwroot/cgi-bin/plugins/hostinfo.pm index 95b2c20b..1f0ac699 100644 --- a/wwwroot/cgi-bin/plugins/hostinfo.pm +++ b/wwwroot/cgi-bin/plugins/hostinfo.pm @@ -181,7 +181,7 @@ sub BuildFullHTMLOutput_hostinfo { &tab_head("Full Whois Field",0,0,'whois'); if ($w && $w->response()) { - print "
".($w->response())."
".CleanXSS($w->response())."