Fix Alert transport details xss (#16444)

* Fix stored XSS in alert transport details

https://github.com/librenms/librenms/security/advisories/GHSA-7f84-28qh-9486

* Fix password double encode
This commit is contained in:
Tony Murray
2024-09-29 07:45:16 -05:00
committed by GitHub
parent 7620d220e4
commit ee1afba003
2 changed files with 6 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ abstract class Transport implements TransportInterface
$val = $this->config[$item['name']];
if ($item['type'] == 'password') {
$val = '<b>&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;</b>';
$val = '********';
} elseif ($item['type'] == 'select') {
// Match value to key name for select inputs
$val = array_search($val, $item['options']);