diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-05 19:53:38 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-05 19:54:38 -0500 |
commit | f8e730bb0098a3ee266b6eaae51812cbe846299f (patch) | |
tree | fb8542030f2942cb99a4ef36cbd91d953300ab73 | |
parent | a9626fd19bd4bdbfb4fff96752a3b669e752cfcd (diff) | |
download | pfsense-f8e730bb0098a3ee266b6eaae51812cbe846299f.zip pfsense-f8e730bb0098a3ee266b6eaae51812cbe846299f.tar.gz |
Remove bcrypt-hash from status.php config dump. Noticed by Denny Page
-rwxr-xr-x | src/usr/local/www/status.php | 1 |
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); |