Skip to content

Commit

Permalink
Avoid XSS in Module templates
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseGonzalez84 committed Sep 9, 2020
1 parent de49530 commit e833c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandora_console/include/class/ModuleTemplates.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ public function processData()
if (!empty($this->action)) {
// Success variable.
$success = false;
$this->name = get_parameter('name', '');
$this->description = get_parameter('description', '');
$this->name = io_safe_input(strip_tags(io_safe_output((string) get_parameter('name'))));
$this->description = io_safe_input(strip_tags(io_safe_output((string) get_parameter('description'))));
$this->pen = get_parameter('pen', '');

switch ($this->action) {
Expand Down

0 comments on commit e833c31

Please sign in to comment.