Skip to content

Commit

Permalink
Fix: Sanitize password to avoid to use the wrapper to inject malicious
Browse files Browse the repository at this point in the history
paylod into asterisk
  • Loading branch information
eldy committed Jun 3, 2024
1 parent 918c5aa commit d325f2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/asterisk/wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ function llxFooter()
$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');

Expand Down

0 comments on commit d325f2c

Please sign in to comment.