Skip to content

Commit

Permalink
Missing csfr check
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jan 13, 2022
1 parent 58df43e commit f59ffb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lhc_web/modules/lhaudit/configuration.php
Expand Up @@ -7,6 +7,11 @@

if ( isset($_POST['StoreOptions']) ) {

if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) {
erLhcoreClassModule::redirect();
exit;
}

$definition = array(
'days_log' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int'),
'log_js' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'boolean'),
Expand Down

0 comments on commit f59ffb0

Please sign in to comment.