summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-06-13 13:11:23 -0400
committerjim-p <jimp@pfsense.org>2017-06-13 13:11:23 -0400
commitaa18c5b9b62e110ebf88fbb24c39c2a13813bd89 (patch)
treedc991834902eefaff6107ec0231b08e5e4d491ec /src
parent835d8b72effa274b5e2733f219fde00fee60f8e3 (diff)
downloadpfsense-aa18c5b9b62e110ebf88fbb24c39c2a13813bd89.zip
pfsense-aa18c5b9b62e110ebf88fbb24c39c2a13813bd89.tar.gz
Redact BGP MD5 password/key in status output. Fixes #7642
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/status.php2
1 files changed, 2 insertions, 0 deletions
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>.*?<\\/passwordagain>/", "<passwordagain>xxxxx</passwordagain>", $line);
$line = preg_replace("/<crypto_password>.*?<\\/crypto_password>/", "<crypto_password>xxxxx</crypto_password>", $line);
$line = preg_replace("/<crypto_password2>.*?<\\/crypto_password2>/", "<crypto_password2>xxxxx</crypto_password2>", $line);
+ $line = preg_replace("/<md5sigpass>.*?<\\/md5sigpass>/", "<md5sigpass>xxxxx</md5sigpass>", $line);
+ $line = preg_replace("/<md5sigkey>.*?<\\/md5sigkey>/", "<md5sigkey>xxxxx</md5sigkey>", $line);
$line = str_replace("\t", " ", $line);
echo htmlspecialchars($line, ENT_NOQUOTES);
fwrite($ofd, $line);
OpenPOWER on IntegriCloud