VYPR
High severityNVD Advisory· Published Apr 1, 2024· Updated Aug 29, 2024

Centreon updateContactServiceCommands SQL Injection Remote Code Execution Vulnerability

CVE-2024-23117

Description

Centreon updateContactServiceCommands SQL Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Centreon. Authentication is required to exploit this vulnerability.

The specific flaw exists within the updateContactServiceCommands function. The issue results from the lack of proper validation of a user-supplied string before using it to construct SQL queries. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-22297.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
centreon/centreonPackagist
< 22.10.1522.10.15

Affected products

1

Patches

1
c6ee0f67544a

fix(legacy): escape fields (#2464)

https://github.com/centreon/centreonabuathierNov 2, 2023via ghsa
1 file changed · +3 3
  • centreon/www/include/configuration/configObject/host/listHost.ihtml+3 3 modified
    @@ -66,7 +66,7 @@
                         {else}
                             <img src="{$elemArr[elem].RowMenu_icone}" class="ico-18  margin_right"/>
                         {/if}
    -                    {$elemArr[elem].RowMenu_name}
    +                    {$elemArr[elem].RowMenu_name|escape}
                     </a>
                 </td>
                 <td class="ListColCenter">
    @@ -77,11 +77,11 @@
                     </a>
                 </td>
                 <td class="ListColLeft resizeTitle">
    -                <a href="{$elemArr[elem].RowMenu_link}">{$elemArr[elem].RowMenu_desc}</a>
    +                <a href="{$elemArr[elem].RowMenu_link}">{$elemArr[elem].RowMenu_desc|escape}</a>
                 </td>
                 <td class="ListColCenter">{$elemArr[elem].RowMenu_address}</td>
                 <td class="ListColCenter">{$elemArr[elem].RowMenu_poller}</td>
    -            <td class="ListColCenter resizeTitle">{$elemArr[elem].RowMenu_parent}</td>
    +            <td class="ListColCenter resizeTitle">{$elemArr[elem].RowMenu_parent|escape}</td>
                 <td class="ListColCenter">
                     <span class="badge {$elemArr[elem].RowMenu_badge}">{$elemArr[elem].RowMenu_status}</span>
                 </td>
    

Vulnerability mechanics

Synthesis attempt was rejected by the grounding validator. Re-run pending.

References

6

News mentions

0

No linked articles in our index yet.