Skip to content

Commit

Permalink
fix: [security] XSS in community index
Browse files Browse the repository at this point in the history
- As reported by Zigrin Security
  • Loading branch information
mokaddem committed Mar 25, 2023
1 parent c979ab3 commit b94c797
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Lib/Tools/CustomPaginationTool.php
Expand Up @@ -27,6 +27,8 @@ public function createPaginationRules($items, $options, $model, $sort = 'id', $f
$params['options'][$v] = $options[$v];
}
}
$params['page'] = is_numeric($params['page']) ? $params['page'] : 1;
$params['limit'] = is_numeric($params['limit']) ? $params['limit'] : 60;
$maxPage = floor($params['count'] / $params['limit']);
if ($params['count'] % $params['limit'] != 0) {
$maxPage += 1;
Expand Down

2 comments on commit b94c797

@viggiano
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, do I need to restart the Misp making this change or just include this two lines fix this issue?

@adulau
Copy link
Member

@adulau adulau commented on b94c797 Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just run the update in the UI and that's it.

Please sign in to comment.