PoC Monitor
← All CVEs
CVE-2019-15949published 5 Sep 2019 16:50 UTCData: JSON · API

Nagios XI

Nagios XI Remote Code Execution Vulnerability

Nagios XI before 5.6.6 allows remote command execution as root. The exploit requires access to the server as the nagios user, or access as the admin user via the web interface. The getprofile.sh script, invoked by downloading a system profile (profile.php?cmd=download), is executed as root via a passwordless sudo entry; the script executes check_plugin, which is owned by the nagios user. A user logged into Nagios XI with permissions to modify plugins, or the nagios user on the server, can modify the check_plugin executable and insert malicious commands to execute as root.

First public PoC 186 daysafter publication · 10 Mar 2020 · Exploit-DB
Public PoCs62 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS8.8high · scored by CISA ADP · CWE-78
CISA KEV 3 Nov 20212.2 years after publication

Timeline

Days relative to CVE publication
t=0+90+180+270+360+450+540+630+720CVE published5 Sep 2019 · t = 0First public PoC10 Mar 2020 · t+186dAdded to CISA KEV3 Nov 2021 · t+2.2y

First public PoC 186 days after publication; added to CISA KEV 2.2 years after publication. First PoC: Nagios XI - Authenticated Remote Command Execution (Metasploit) (Exploit-DB, 10 Mar 2020).

PoC repositories

Found on GitHub.

2 PoCs

PoCs 2
RepositoryCreatedStarsAssessment
jakgibb/nagiosxi-root-rce-exploit 21 Aug 2019 −15 d 16 PoC older repo: PoC date unknown, not used for the first PoC
plur1bu5/Nagios-CVE-2019-15949-RCE 17 Mar 2026 +6.5 y 0 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 2 PoC repos

GET /nagiosxi/admin/monitoringplugins.php

Seen in
1 repo: plur1bu5/Nagios-CVE-2019-15949-RCE
Evidence
plur1bu5/Nagios-CVE-2019-15949-RCE/exploit.py:38

GET /nagiosxi/includes/components/profile/profile.php

Query
cmd=download
Seen in
1 repo: plur1bu5/Nagios-CVE-2019-15949-RCE
Evidence
plur1bu5/Nagios-CVE-2019-15949-RCE/exploit.py:56

POST /nagiosxi/admin/monitoringplugins.php

Body markers
upload=1 nsp= MAX_FILE_SIZE=20000000 in application/x-www-form-urlencoded
Seen in
1 repo: plur1bu5/Nagios-CVE-2019-15949-RCE
Evidence
plur1bu5/Nagios-CVE-2019-15949-RCE/exploit.py:52

POST /nagiosxi/login.php

Body markers
username= password= pageopt=login nsp= in application/x-www-form-urlencoded
Seen in
1 repo: plur1bu5/Nagios-CVE-2019-15949-RCE
Evidence
plur1bu5/Nagios-CVE-2019-15949-RCE/exploit.py:30

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /nagiosxi/admin/monitoringplugins.php
(?i)^/nagiosxi/admin/monitoringplugins\.php(?:[?#].*)?$
GET /nagiosxi/includes/components/profile/profile.php
(?i)^/nagiosxi/includes/components/profile/profile\.php\?(?:.*&)?cmd=download
GET /nagiosxi/login.php
(?i)^/nagiosxi/login\.php(?:[?#].*)?$
POST /nagiosxi/admin/monitoringplugins.php
(?i)^/nagiosxi/admin/monitoringplugins\.php(?:[?#].*)?$
POST /nagiosxi/login.php
(?i)^/nagiosxi/login\.php(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /nagiosxi/admin/monitoringplugins.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2019-15949 Nagios Nagios XI exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/nagiosxi/admin/monitoringplugins.php"; reference:url,poc.griffinguard.io/cve/CVE-2019-15949; classtype:web-application-attack; sid:9836679; rev:1;)
GET /nagiosxi/includes/components/profile/profile.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2019-15949 Nagios Nagios XI exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/nagiosxi/includes/components/profile/profile.php"; http.uri; content:"cmd=download"; reference:url,poc.griffinguard.io/cve/CVE-2019-15949; classtype:web-application-attack; sid:9787983; rev:1;)
GET /nagiosxi/login.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2019-15949 Nagios Nagios XI exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/nagiosxi/login.php"; reference:url,poc.griffinguard.io/cve/CVE-2019-15949; classtype:web-application-attack; sid:9559180; rev:1;)
POST /nagiosxi/admin/monitoringplugins.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2019-15949 Nagios Nagios XI exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/nagiosxi/admin/monitoringplugins.php"; http.request_body; content:"upload=1"; http.request_body; content:"nsp="; http.request_body; content:"MAX_FILE_SIZE=20000000"; reference:url,poc.griffinguard.io/cve/CVE-2019-15949; classtype:web-application-attack; sid:9122351; rev:1;)
POST /nagiosxi/login.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2019-15949 Nagios Nagios XI exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/nagiosxi/login.php"; http.request_body; content:"username="; http.request_body; content:"password="; http.request_body; content:"pageopt=login"; http.request_body; content:"nsp="; reference:url,poc.griffinguard.io/cve/CVE-2019-15949; classtype:web-application-attack; sid:9814324; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /nagiosxi/admin/monitoringplugins.php
title: Nagios Nagios XI exploit attempt (CVE-2019-15949)
id: gg-pocmon-cve-2019-15949-9836679
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-15949. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-15949
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/nagiosxi/admin/monitoringplugins.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.15949
GET /nagiosxi/includes/components/profile/profile.php
title: Nagios Nagios XI exploit attempt (CVE-2019-15949)
id: gg-pocmon-cve-2019-15949-9787983
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-15949. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-15949
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/nagiosxi/includes/components/profile/profile.php'
    cs-uri-query|contains|all:
      - 'cmd=download'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.15949
GET /nagiosxi/login.php
title: Nagios Nagios XI exploit attempt (CVE-2019-15949)
id: gg-pocmon-cve-2019-15949-9559180
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-15949. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-15949
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/nagiosxi/login.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.15949
POST /nagiosxi/admin/monitoringplugins.php
title: Nagios Nagios XI exploit attempt (CVE-2019-15949)
id: gg-pocmon-cve-2019-15949-9122351
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-15949. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-15949
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/nagiosxi/admin/monitoringplugins.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.15949
POST /nagiosxi/login.php
title: Nagios Nagios XI exploit attempt (CVE-2019-15949)
id: gg-pocmon-cve-2019-15949-9814324
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-15949. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-15949
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/nagiosxi/login.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.15949