summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-05 19:53:38 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-05 19:54:38 -0500
commitf8e730bb0098a3ee266b6eaae51812cbe846299f (patch)
treefb8542030f2942cb99a4ef36cbd91d953300ab73
parenta9626fd19bd4bdbfb4fff96752a3b669e752cfcd (diff)
downloadpfsense-f8e730bb0098a3ee266b6eaae51812cbe846299f.zip
pfsense-f8e730bb0098a3ee266b6eaae51812cbe846299f.tar.gz
Remove bcrypt-hash from status.php config dump. Noticed by Denny Page
-rwxr-xr-xsrc/usr/local/www/status.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php
index 0f1790c..018689e 100755
--- a/src/usr/local/www/status.php
+++ b/src/usr/local/www/status.php
@@ -106,6 +106,7 @@ function doCmdT($title, $command) {
while (!feof($fd)) {
$line = fgets($fd);
/* remove sensitive contents */
+ $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("/<pre-shared-key>.*?<\\/pre-shared-key>/", "<pre-shared-key>xxxxx</pre-shared-key>", $line);
$line = preg_replace("/<rocommunity>.*?<\\/rocommunity>/", "<rocommunity>xxxxx</rocommunity>", $line);
OpenPOWER on IntegriCloud