From 8a2229e3da4777fa55af2ebb4901ba2fa0a81ef1 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 4 Nov 2014 12:43:24 -0500 Subject: [PATCH] Catch some more sensitive info when sanitizing. --- usr/local/www/status.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usr/local/www/status.php b/usr/local/www/status.php index 0a0f70a098..b4c4936bf8 100755 --- a/usr/local/www/status.php +++ b/usr/local/www/status.php @@ -65,6 +65,16 @@ function doCmdT($title, $command) { $line = preg_replace("/.*?<\\/password>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/pre-shared-key>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/rocommunity>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/prv>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/ipsecpsk>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/md5-hash>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/md5password>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/nt-hash>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/radius_secret>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/ldap_bindpw>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/passwordagain>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/crypto_password>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/crypto_password2>/", "xxxxx", $line); $line = str_replace("\t", " ", $line); echo htmlspecialchars($line,ENT_NOQUOTES); }