Fix: Sanitize password to avoid to use the wrapper to inject malicious

paylod into asterisk
This commit is contained in:
Laurent Destailleur 2024-06-03 22:17:41 +02:00
parent 918c5aab43
commit d325f2c25d

View file

@ -118,6 +118,9 @@ $password = GETPOST('password', 'none');
$caller = GETPOST('caller', 'alphanohtml');
$called = GETPOST('called', 'alphanohtml');
// Sanitize password to avoid to use the wrapper to inject malicious paylod into asterisk
$password = preg_replace('/[\n\r]/', '', $password);
// IP address of Asterisk server
$strHost = getDolGlobalString('ASTERISK_HOST');