From 177a85512e87f2776807e90dfe8b70405fa43509 Mon Sep 17 00:00:00 2001 From: "marcelo.cuiza" Date: Tue, 17 Mar 2015 17:09:30 -0400 Subject: [PATCH] xss 2 --- workflow/engine/classes/class.processMap.php | 4 ++++ workflow/engine/classes/class.propelTable.php | 19 ++++++++++++++++++- .../engine/methods/cases/casesList_Ajax.php | 6 ++++++ workflow/engine/methods/setup/skin_Ajax.php | 10 +++++++++- .../engine/methods/tracker/tracker_Ajax.php | 4 ++++ workflow/engine/methods/users/usersAjax.php | 9 +++++++++ workflow/engine/methods/users/users_Ajax.php | 6 ++++++ 7 files changed, 56 insertions(+), 2 deletions(-) diff --git a/workflow/engine/classes/class.processMap.php b/workflow/engine/classes/class.processMap.php index 233e6a933..f3678406e 100755 --- a/workflow/engine/classes/class.processMap.php +++ b/workflow/engine/classes/class.processMap.php @@ -2356,7 +2356,11 @@ class processMap $G_PUBLISH->AddContent('propeltable', 'paged-table', '/cases/cases_Scheduler_List', $oCriteria, array('CONFIRM' => G::LoadTranslation('ID_MSG_CONFIRM_DELETE_CASE_SCHEDULER'))); G::RenderPage('publish'); //return true; */ + G::LoadSystem('inputfilter'); + $filter = new InputFilter(); $schedulerPath = SYS_URI . "cases/cases_Scheduler_List"; + $schedulerPath = $filter->xssFilterHard($schedulerPath); + $sProcessUID = $filter->xssFilterHard($sProcessUID); $html = ""; echo $html; } catch (Exception $oError) { diff --git a/workflow/engine/classes/class.propelTable.php b/workflow/engine/classes/class.propelTable.php index a412e5bac..afdf59f4b 100755 --- a/workflow/engine/classes/class.propelTable.php +++ b/workflow/engine/classes/class.propelTable.php @@ -559,7 +559,13 @@ class propelTable * @return string */ public function renderTable ($block = '', $fields = '') - { + { + G::LoadSystem('inputfilter'); + $filter = new InputFilter(); + $fields = $filter->xssFilterHard($fields); + $this->orderBy = $filter->xssFilterHard($this->orderBy); + $this->currentPage = $filter->xssFilterHard($this->currentPage); + //Render Title $thereisnotitle = true; foreach ($this->fields as $r => $rval) { @@ -603,6 +609,11 @@ class propelTable $this->tpl->assign( 'pagedTable_Name', $this->name ); $this->tpl->assign( 'pagedTable_Height', $this->xmlForm->height ); $this->tpl->assign( "title", $this->title ); + + $this->xmlForm->home = $filter->xssFilterHard($this->xmlForm->home); + $this->filterForm = $filter->xssFilterHard($this->filterForm); + $this->menu = $filter->xssFilterHard($this->menu); + if (file_exists( $this->xmlForm->home . $this->filterForm . '.xml' )) { $filterForm = new filterForm( $this->filterForm, $this->xmlForm->home ); if ($this->menu === '') { @@ -839,6 +850,12 @@ class propelTable } $this->tpl->assign( "pagesEnum", $pagesEnum ); } + + $this->name = $filter->xssFilterHard($this->name); + $this->orderBy = $filter->xssFilterHard($this->orderBy); + $this->currentPage = $filter->xssFilterHard($this->currentPage); + $this->id = $filter->xssFilterHard($this->id); + ?>