{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-9707 exists.","fix":"No fix has been published for CVE-2024-9707 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-9707 is a critical missing authorization vulnerability in themehunk Hunk Companion, published on 11 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-9707 and fix it if it is affected.\n\nWhat it is: CVE-2024-9707 is a critical missing authorization vulnerability in themehunk Hunk Companion, published on 11 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-9707 exists.\n\nAffected product: themehunk Hunk Companion. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-9707/ (Markdown: https://insights.sbomify.com/CVE-2024-9707/index.md)","id":"CVE-2024-9707","markdown":"https://insights.sbomify.com/CVE-2024-9707/index.md","name":"CVE-2024-9707","record":{"aliases":["GHSA-8cm3-4qfx-pwvc"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"none","summary":"Unauthenticated attackers can install and activate arbitrary plugins via a missing capability check, potentially leading to remote code execution.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[{"product":"hunk_companion","vendor":"themehunk"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-10-11","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-10-11T06:21:38Z","kind":"github_poc","ref":"https://github.com/RandomRobbieBF/CVE-2024-9707","stars":1,"title":"Hunk Companion \u003c= 1.8.4 - Missing Authorization to Unauthenticated Arbitrary Plugin Installation/Activation"},{"date":"2025-01-12T23:35:02Z","kind":"github_poc","ref":"https://github.com/Nxploited/CVE-2024-9707-Poc","stars":0,"title":"he Hunk Companion Plugin for WordPress: Vulnerable to Unauthorized Plugin Installation/Activation (Versions Up to and Including 1.8.4)"},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-9707.yaml","stars":null,"title":"Hunk Companion \u003c= 1.8.4 - Arbitrary Plugin Installation"}],"tier":"weaponised"},"has_fix":null,"headline":"Hunk Companion \u003c= 1.8.4 - Missing Authorization to Unauthenticated Arbitrary Plugin Installation/Activation","id":"CVE-2024-9707","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":0,"n_references":4,"next":{"headline":"Easy SVG Upload \u003c= 1.1 - Authenticated (Author+) Stored Cross-Site Scripting via SVG File Upload","id":"CVE-2024-9708"},"packages":[],"prev":{"headline":"Ultimate Coming Soon \u0026 Maintenance \u003c= 1.0.9 - Missing Authorization to Unauthenticated Template Activation","id":"CVE-2024-9706"},"products":["Hunk Companion"],"published":"2024-10-11","related":[{"cvss_score":9.8,"headline":"Hunk Companion \u003c 1.9.0 - Unauthenticated Plugin Installation","id":"CVE-2024-11972","kev_date_added":null,"published":"2024-12-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-08","vendors":["themehunk"]},"summary":"Unauthenticated attackers can install and activate arbitrary plugins via a missing capability check, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2024-9707/"}