centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
578 stars 240 forks source link

Fix(security): Sanitize queries in the list of service groups #12007

Open emabassi-ext opened 1 year ago

emabassi-ext commented 1 year ago

Description

Queries should be sanitized (if possible) and bound using PDO statement to reduce attack surface and clean legacy code

Fixes # MON-15379

Type of change

Target serie

How this pull request can be tested ?

  1. navigate to service groups listing page
  2. add multiple sgroups
  3. check if sgroups are still visible for both (admin and non admin user)
  4. check if there is no error in log file
  5. Checklist

Community contributors & Centreon team

sonarqube-decoration[bot] commented 1 year ago

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 10 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication