summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-06-01 08:09:35 -0400
committerjim-p <jimp@pfsense.org>2016-06-01 08:09:35 -0400
commitfea0805e71d8bff47c6cd1087a50a9ce9bb9089e (patch)
treeb11ddcb757bfb69aad5b1a3d288b5bfd74f82c1f /src/usr/local/www/status.php
parentc25c67149283270ad005b2c4f22d17c455c95eb2 (diff)
downloadpfsense-fea0805e71d8bff47c6cd1087a50a9ce9bb9089e.zip
pfsense-fea0805e71d8bff47c6cd1087a50a9ce9bb9089e.tar.gz
Mask a few more sensitive bits of data in the status.php config.
Diffstat (limited to 'src/usr/local/www/status.php')
-rwxr-xr-xsrc/usr/local/www/status.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php
index e2708c4..5431e54 100755
--- a/src/usr/local/www/status.php
+++ b/src/usr/local/www/status.php
@@ -109,6 +109,12 @@ function doCmdT($title, $command) {
$line = preg_replace("/<authorizedkeys>.*?<\\/authorizedkeys>/", "<authorizedkeys>xxxxx</authorizedkeys>", $line);
$line = preg_replace("/<bcrypt-hash>.*?<\\/bcrypt-hash>/", "<bcrypt-hash>xxxxx</bcrypt-hash>", $line);
$line = preg_replace("/<password>.*?<\\/password>/", "<password>xxxxx</password>", $line);
+ $line = preg_replace("/<auth_user>.*?<\\/auth_user>/", "<auth_user>xxxxx</auth_user>", $line);
+ $line = preg_replace("/<auth_pass>.*?<\\/auth_pass>/", "<auth_pass>xxxxx</auth_pass>", $line);
+ $line = preg_replace("/<proxy_user>.*?<\\/proxy_user>/", "<proxy_user>xxxxx</proxy_user>", $line);
+ $line = preg_replace("/<proxy_passwd>.*?<\\/proxy_passwd>/", "<proxy_passwd>xxxxx</proxy_passwd>", $line);
+ $line = preg_replace("/<proxyuser>.*?<\\/proxyuser>/", "<proxyuser>xxxxx</proxyuser>", $line);
+ $line = preg_replace("/<proxypass>.*?<\\/proxypass>/", "<proxypass>xxxxx</proxypass>", $line);
$line = preg_replace("/<pre-shared-key>.*?<\\/pre-shared-key>/", "<pre-shared-key>xxxxx</pre-shared-key>", $line);
$line = preg_replace("/<rocommunity>.*?<\\/rocommunity>/", "<rocommunity>xxxxx</rocommunity>", $line);
$line = preg_replace("/<prv>.*?<\\/prv>/", "<prv>xxxxx</prv>", $line);
OpenPOWER on IntegriCloud