centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

feat(apps::vmware::vsphere8::vcenter::plugin): new plugin

Open omercier opened this issue 8 months ago • 1 comments

Modes:

  • vm-count
  • datastore-usage
  • list-datastores

Description

PLEASE MAKE SURE THAT THE BRANCH PR INCLUDES JIRA TICKET ID

Please include a short resume of the changes and what is the purpose of this pull request. Any relevant information should be added to help reviewers to understand what are the stakes of the pull request.

Fixes # (issue) If you are fixing a github Issue already existing, mention it here. If you are fixing one or more JIRA ticket, mention it here too.

Type of change

  • [ ] Patch fixing an issue (non-breaking change)
  • [x] New functionality (non-breaking change)
  • [ ] Functionality enhancement or optimization (non-breaking change)
  • [ ] Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

Please describe the procedure to verify that the goal of the PR is matched. Provide clear instructions so that it can be correctly tested. Mention the automated tests included in this FOR (what they test like mode/option combinations).

Checklist

  • [ ] I have followed the coding style guidelines provided by Centreon
  • [ ] I have commented my code, especially hard-to-understand areas of the PR.
  • [ ] I have rebased my development branch on the base branch (develop).
  • [ ] In case of a new plugin, I have created the new packaging directory accordingly.
  • [ ] I have implemented automated tests related to my commits.
    • [ ] Data used for automated tests are anonymized.
  • [ ] I have reviewed all the help messages in all the .pm files I have modified.
    • [ ] All sentences begin with a capital letter.
    • [ ] All sentences end with a period.
    • [ ] I am able to understand all the help messages, if not, exchange with the PO or TW to rewrite them.
  • [ ] After having created the PR, I will make sure that all the tests provided in this PR have run and passed.

omercier avatar Jun 03 '25 14:06 omercier

Logo Checkmarx One – Scan Summary & Detailsb0372a2a-bd0a-4333-ad35-ab3b01b27788

New Issues (24)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Dangerous_Functions /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 27
detailsThe dangerous function, strcpy, was found in use at line 27 in /dependencies/perl-filesys-smbclient/src/libauthSamba.c file. Such functions may...
ID: %2Bs%2BdtOTDTS0pY7f6EWQryJhws9Y%3D
Attack Vector
MEDIUM Dangerous_Functions /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 21
detailsThe dangerous function, strcpy, was found in use at line 21 in /dependencies/perl-filesys-smbclient/src/libauthSamba.c file. Such functions may...
ID: fjZBzFlj3A6iYPo7Yb%2BTcoEI0qs%3D
Attack Vector
MEDIUM Dangerous_Functions /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 20
detailsThe dangerous function, strcpy, was found in use at line 20 in /dependencies/perl-filesys-smbclient/src/libauthSamba.c file. Such functions may...
ID: xWrpITI%2BsrCHa4fefQHt3WNOM6A%3D
Attack Vector
MEDIUM Dangerous_Functions /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 52
detailsThe dangerous function, strcpy, was found in use at line 52 in /dependencies/perl-filesys-smbclient/src/libauthSamba.c file. Such functions may...
ID: gzvBNrCfhraACCZ2YDg0k6foQsk%3D
Attack Vector
MEDIUM Dangerous_Functions /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 54
detailsThe dangerous function, strcpy, was found in use at line 54 in /dependencies/perl-filesys-smbclient/src/libauthSamba.c file. Such functions may...
ID: PNP312vMK9lhaLnehIkicEwl9N8%3D
Attack Vector
MEDIUM Dangerous_Functions /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 49
detailsThe dangerous function, strcpy, was found in use at line 49 in /dependencies/perl-filesys-smbclient/src/libauthSamba.c file. Such functions may...
ID: 78IUK8t3ietNFerVhWJJnAMZR4A%3D
Attack Vector
MEDIUM Use_of_Broken_or_Risky_Cryptographic_Algorithm /as400/connector.as400/src/main/java/com/centreon/connector/as400/utils/BlowFishUtils.java: 66
detailsIn decrypt, the application protects sensitive data using a cryptographic algorithm, getInstance, that is considered weak or even trivially broken,...
ID: MFsux2jPCARnm70Vt9zQRR0O278%3D
Attack Vector
MEDIUM Use_of_Broken_or_Risky_Cryptographic_Algorithm /as400/connector.as400/src/main/java/com/centreon/connector/as400/utils/BlowFishUtils.java: 74
detailsIn encrypt, the application protects sensitive data using a cryptographic algorithm, getInstance, that is considered weak or even trivially broken,...
ID: YXdlUT4yNfblbRIR2YuaXF7OffU%3D
Attack Vector
MEDIUM Use_of_Hard_coded_Cryptographic_Key /as400/connector.as400/src/main/java/com/centreon/connector/as400/utils/BlowFishUtils.java: 35
detailsThe variable ""3fe7b4d9e0b50a"" at line 35 of /as400/connector.as400/src/main/java/com/centreon/connector/as400/utils/BlowFishUtils.java is assig...
ID: 2MhVgNfoZAP%2BbVWCXkq4GJvATQ0%3D
Attack Vector
MEDIUM Use_of_Hard_coded_Cryptographic_Key /as400/connector.as400/src/main/java/com/centreon/connector/as400/utils/BlowFishUtils.java: 35
detailsThe variable ""3fe7b4d9e0b50a"" at line 35 of /as400/connector.as400/src/main/java/com/centreon/connector/as400/utils/BlowFishUtils.java is assig...
ID: fOokBgPT391Uv7I00Pz5Pl3TfVo%3D
Attack Vector
LOW Heap_Inspection /as400/connector.as400/src/main/java/com/centreon/connector/as400/parser/OptionFactory.java: 55
detailsMethod addAs400Options at line 55 of /as400/connector.as400/src/main/java/com/centreon/connector/as400/parser/OptionFactory.java defines password...
ID: zgrpr0usveB7%2FWZBkCUUWRoh0qw%3D
Attack Vector
LOW Heap_Inspection /as400/connector.as400/src/main/java/com/centreon/connector/as400/daemon/MapIdentityManager.java: 75
detailsMethod verifyCredential at line 75 of /as400/connector.as400/src/main/java/com/centreon/connector/as400/daemon/MapIdentityManager.java defines pa...
ID: 0t9ypv09nwBVmOpNx7Dd2SQMNUI%3D
Attack Vector
LOW Heap_Inspection /as400/connector.as400/src/main/java/com/centreon/connector/as400/daemon/MapIdentityManager.java: 76
detailsMethod verifyCredential at line 76 of /as400/connector.as400/src/main/java/com/centreon/connector/as400/daemon/MapIdentityManager.java defines ex...
ID: Jywe88g%2Bq%2FcWwE78LYohTqX3RCk%3D
Attack Vector
LOW Heap_Inspection /dependencies/perl-filesys-smbclient/src/libauthSamba.c: 6
detailsMethod at line 6 of /dependencies/perl-filesys-smbclient/src/libauthSamba.c defines Password, which is designated to contain user passwords. H...
ID: E%2F2PQs6mhCM0yRsNsoU77NQx2mA%3D
Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
LOW Permissive_Regular_Expression /src/centreon/common/powershell/exchange/powershell.pm: 65 Attack Vector
Fixed Issues (159)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
CRITICAL ~~Second_Order_SQL_Injection~~ /src/database/oracle/mode/tablespaceusage.pm: 557
CRITICAL ~~Second_Order_SQL_Injection~~ /src/apps/centreon/sql/mode/multiservices.pm: 380
CRITICAL ~~Second_Order_SQL_Injection~~ /src/apps/centreon/sql/mode/multiservices.pm: 445
CRITICAL ~~Second_Order_SQL_Injection~~ /src/database/oracle/mode/tablespaceusage.pm: 265
CRITICAL ~~Second_Order_SQL_Injection~~ /src/centreon/common/protocols/sql/mode/collection.pm: 219
CRITICAL ~~Second_Order_SQL_Injection~~ /src/apps/backup/arcserve/udp/mssql/mode/jobstatus.pm: 155
HIGH ~~Path_Traversal~~ /.github/scripts/plugins-source.container.pl: 21
HIGH ~~Path_Traversal~~ /.github/scripts/plugins-source.container.pl: 60
MEDIUM ~~Privacy_Violation~~ /connectors/vmware/src/centreon/script/centreon_vmware.pm: 270
MEDIUM ~~Privacy_Violation~~ /connectors/vmware/src/centreon/script/centreon_vmware.pm: 282
MEDIUM ~~Privacy_Violation~~ /tests/cpan-libraries/json-path.pl: 13
MEDIUM ~~Privacy_Violation~~ /tests/cpan-libraries/json-path.pl: 11
MEDIUM ~~Privacy_Violation~~ /tests/cpan-libraries/json-path.pl: 12
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/paws.pm: 110
MEDIUM ~~Privacy_Violation~~ /tests/cpan-libraries/json-path.pl: 10
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/paws.pm: 107
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 210
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 211
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 212
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 127
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 124
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 127
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 124
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/awscli.pm: 124
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/paws.pm: 110
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/paws.pm: 107
MEDIUM ~~Privacy_Violation~~ /src/cloud/aws/custom/paws.pm: 107
MEDIUM ~~Resource_Injection~~ /connectors/vmware/src/centreon/script/centreon_vmware.pm: 669
MEDIUM ~~Use_Of_Hardcoded_Password~~ /tests/cpan-libraries/libssh-session.pl: 83
MEDIUM ~~Use_Of_Hardcoded_Password~~ /src/centreon/plugins/backend/ssh/libssh.pm: 88
MEDIUM ~~Use_Of_Hardcoded_Password~~ /tests/cpan-libraries/crypt-argon2.pl: 8
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /tests/scripts/slim_walk.pl: 225
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/purestorage/flashblade/v2/restapi/custom/api.pm: 127
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/purestorage/flashblade/v2/restapi/custom/api.pm: 124
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/purestorage/flasharray/v2/restapi/custom/api.pm: 127
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/purestorage/flasharray/v2/restapi/custom/api.pm: 124
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/nimble/restapi/custom/api.pm: 147
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/hp/storeonce/4/restapi/custom/api.pm: 123
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/hp/primera/restapi/custom/api.pm: 106
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/hp/p2000/xmlapi/custom/api.pm: 265
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/dell/me4/restapi/custom/api.pm: 142
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/storage/dell/me4/restapi/custom/api.pm: 136
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm: 246
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm: 232
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm: 114
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/cloud/vmware/velocloud/restapi/custom/api.pm: 361
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/cloud/vmware/velocloud/restapi/custom/api.pm: 166
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/vmware/vsphere8/custom/api.pm: 137
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/proxmox/ve/restapi/custom/api.pm: 144
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/veeam/vbem/restapi/custom/api.pm: 233
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/veeam/vbem/restapi/custom/api.pm: 223
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/veeam/vbem/restapi/custom/api.pm: 135
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/rubrik/restapi/custom/api.pm: 196
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/rubrik/restapi/custom/api.pm: 394
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/rubrik/restapi/custom/api.pm: 404
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/rubrik/restapi/custom/api.pm: 193
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/rubrik/restapi/custom/api.pm: 147
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/netapp/snapcenter/restapi/custom/api.pm: 151
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/commvault/commserve/restapi/custom/api.pm: 297
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/commvault/commserve/restapi/custom/api.pm: 276
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/commvault/commserve/restapi/custom/api.pm: 289
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/commvault/commserve/restapi/custom/api.pm: 176
MEDIUM ~~Use_of_Broken_or_Risky_Cryptographic_Algorithm~~ /src/apps/backup/commvault/commserve/restapi/mode/alerts.pm: 149

More results are available on the CxOne platform

github-actions[bot] avatar Jun 03 '25 14:06 github-actions[bot]