From aa18c5b9b62e110ebf88fbb24c39c2a13813bd89 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 13 Jun 2017 13:11:23 -0400 Subject: Redact BGP MD5 password/key in status output. Fixes #7642 --- src/usr/local/www/status.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php index 37b4334..038c4b7 100644 --- a/src/usr/local/www/status.php +++ b/src/usr/local/www/status.php @@ -111,6 +111,8 @@ function doCmdT($title, $command, $method) { $line = preg_replace("/.*?<\\/passwordagain>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/crypto_password>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/crypto_password2>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/md5sigpass>/", "xxxxx", $line); + $line = preg_replace("/.*?<\\/md5sigkey>/", "xxxxx", $line); $line = str_replace("\t", " ", $line); echo htmlspecialchars($line, ENT_NOQUOTES); fwrite($ofd, $line); -- cgit v1.1