Skip to content

Commit

Permalink
sec(Home) Reflected XSS via stuffid/stufftype parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed Aug 24, 2022
1 parent 5f5594f commit 537c117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/Home/NewBlock.php
Expand Up @@ -14,8 +14,8 @@
require_once 'include/home.php';
require_once 'Smarty_setup.php';

$stuffid = vtlib_purify($_REQUEST['stuffid']);
$stufftype = vtlib_purify($_REQUEST['stufftype']);
$stuffid = filter_var($_REQUEST['stuffid'], FILTER_SANITIZE_NUMBER_INT);
$stufftype = urlencode(vtlib_purify($_REQUEST['stufftype']));

$homeObj=new Homestuff();
$smarty=new vtigerCRM_Smarty;
Expand Down

0 comments on commit 537c117

Please sign in to comment.