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) :Sanitized queries in the list of meta service #11978

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-15371

Type of change

Target serie

How this pull request can be tested ?

  1. Navigate to Configuration -> Services -> Meta Services
  2. Create a meta service
  3. Duplicate it like 15 times
  4. See if pagination and search is still working

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 9 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication