Skip to content

Commit

Permalink
Fix add all confirm_* action as sensitive actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 18, 2021
1 parent 7dfedd2 commit 6390f2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions htdocs/main.inc.php
Expand Up @@ -464,8 +464,6 @@ function analyseVarsForSqlAndScriptsInjection(&$var, $type)
// Array of action code where CSRFCHECK with token will be forced (so token must be provided on url request)
$arrayofactiontoforcetokencheck = array(
'activate', 'add', 'addrights', 'addtimespent',
'confirm_create_user', 'confirm_create_thirdparty', 'confirm_delete', 'confirm_deletedir', 'confirm_deletefile', 'confirm_deleteline', 'confirm_purge', 'confirm_reject_check',
'confirm_activate', 'confirm_validate', 'confirm_close',
'delete', 'deletecontact', 'deletefilter', 'deleteoperation', 'deleteprof', 'deletepayment', 'delrights',
'disable',
'doprev', 'donext', 'dvprev', 'dvnext',
Expand All @@ -478,7 +476,7 @@ function analyseVarsForSqlAndScriptsInjection(&$var, $type)
if (in_array(GETPOST('action', 'aZ09'), $arrayofactiontoforcetokencheck)) {
$sensitiveget = true;
}
if (preg_match('/^(disable_|enable_|setremise)/', GETPOST('action', 'aZ09'))) {
if (preg_match('/^(confirm_|disable_|enable_|setremise)/', GETPOST('action', 'aZ09'))) {
$sensitiveget = true;
}

Expand Down

0 comments on commit 6390f2d

Please sign in to comment.