Skip to content

Commit

Permalink
Fixed issue: [security] #15204: Stored XSS vulnerabilities - Thanks t…
Browse files Browse the repository at this point in the history
…o J. Greil from the SEC Consult Vulnerability Lab (https://www.sec-consult.com)

Dev: encode group name in alert deleted
  • Loading branch information
Shnoulle committed Sep 1, 2019
1 parent f1c1ad2 commit 32d6a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/SurveysGroupsController.php
Expand Up @@ -130,7 +130,7 @@ public function delete($id)

// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if (!isset($_GET['ajax'])) {
Yii::app()->setFlashMessage(sprintf(gT("The survey group '%s' was deleted."), $sGroupTitle), 'success');
Yii::app()->setFlashMessage(sprintf(gT("The survey group '%s' was deleted."), CHtml::encode($sGroupTitle)), 'success');
$this->getController()->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin/survey/sa/listsurveys '));
}
}
Expand Down

0 comments on commit 32d6a52

Please sign in to comment.