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 services by host group #11993

Open hyahiaoui-ext opened 1 year ago

hyahiaoui-ext commented 1 year ago

Description

Sanitizing and binding + refactoring services by hostgroup list.

Fixes # MON-15367

Type of change

Target serie

Checklist

Community contributors & Centreon team

hyahiaoui-ext commented 1 year ago

@callapa i've checked with @emabassi-ext and effectively i had to add the str_replace for another case that i didn't consider (it had to do with Host groups that already existed) i fixed it + a little refactoring the code.

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 B 8 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication