summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-06-05 08:22:06 -0400
committerjim-p <jimp@pfsense.org>2015-06-05 08:22:06 -0400
commit1557716b7c0d76a435e1604174249d814c6b5a26 (patch)
treefca21ad03844b79122c739e5109ad671e22aa419 /usr/local
parentdc6695c3f41f65dd3232e311e589bad217bb4c10 (diff)
downloadpfsense-1557716b7c0d76a435e1604174249d814c6b5a26.zip
pfsense-1557716b7c0d76a435e1604174249d814c6b5a26.tar.gz
Also sanitize OpenVPN static/tls keys in status.php
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/status.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/status.php b/usr/local/www/status.php
index e26f8a6..c86f446 100755
--- a/usr/local/www/status.php
+++ b/usr/local/www/status.php
@@ -70,6 +70,8 @@ function doCmdT($title, $command) {
$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);
+ $line = preg_replace("/<shared_key>.*?<\\/shared_key>/", "<shared_key>xxxxx</shared_key>", $line);
+ $line = preg_replace("/<tls>.*?<\\/tls>/", "<tls>xxxxx</tls>", $line);
$line = preg_replace("/<ipsecpsk>.*?<\\/ipsecpsk>/", "<ipsecpsk>xxxxx</ipsecpsk>", $line);
$line = preg_replace("/<md5-hash>.*?<\\/md5-hash>/", "<md5-hash>xxxxx</md5-hash>", $line);
$line = preg_replace("/<md5password>.*?<\\/md5password>/", "<md5password>xxxxx</md5password>", $line);
OpenPOWER on IntegriCloud