diff options
author | jim-p <jimp@pfsense.org> | 2015-06-05 08:22:06 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-06-05 08:22:06 -0400 |
commit | 1557716b7c0d76a435e1604174249d814c6b5a26 (patch) | |
tree | fca21ad03844b79122c739e5109ad671e22aa419 | |
parent | dc6695c3f41f65dd3232e311e589bad217bb4c10 (diff) | |
download | pfsense-1557716b7c0d76a435e1604174249d814c6b5a26.zip pfsense-1557716b7c0d76a435e1604174249d814c6b5a26.tar.gz |
Also sanitize OpenVPN static/tls keys in status.php
-rwxr-xr-x | usr/local/www/status.php | 2 |
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); |