WP Manifestindependent plugin directory
manifest / ecommerce / woo-discount-rules-compatible

Compatibility Plugin for Woo Discount Rules WP Registry grade B. Medium-severity findings · 1 findingWP RegistryMedium-severity findings · 1 findingOpen the reportB

Which helps to make woo discount rules compatible with other plugin

★ 0stars
205release downloads
≈10active sites
1.0.2latest · 6 years ago

Install

Download woo-discount-rules-compatible.zip From the 1.0.2 release on GitHub, Feb 4, 2020

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/flycartinc/woo-discount-rules-compatible/releases/download/1.0.2/woo-discount-rules-compatible.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WC tested up to: 3.9 Requires PHP: 5.6 Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

To make compatible with Discount Rules for WooCommerce with other plugins.

This plugin make Woo Discount Rules compatible with:

  1. WooCommerce Currency Switcher (WOOCS) By realmag777 - https://wordpress.org/plugins/woocommerce-currency-switcher/

  2. Multi Currency for WooCommerce By villatheme - https://wordpress.org/plugins/woo-multi-currency/

  3. WooCommerce Wholesale Prices By Rymera Web Co - https://wholesalesuiteplugin.com/woocommerce-wholesale-prices-premium/

  4. Product Add-Ons By Woocommerce - https://woocommerce.com/products/product-add-ons/

  5. Product Bundles By SomewhereWarm - https://woocommerce.com/products/product-bundles/

  6. Gravity Forms Product Add-ons By lucas stark - https://woocommerce.com/products/gravity-forms-add-ons/

  7. WooCommerce Brands By Woocommerce - https://woocommerce.com/products/brands/

  8. Perfect WooCommerce Brands By Alberto de Vera Sevilla - https://wordpress.org/plugins/perfect-woocommerce-brands/

  9. Composite Products By Somewhere Warm - https://woocommerce.com/products/composite-products/

  10. WC Role Based Price By Varun sridharan - https://wordpress.org/plugins/woocommerce-role-based-price/

  11. Extra Product Options (Product Addons) for WooCommerce By themehigh - https://wordpress.org/plugins/woo-extra-product-options/

  12. YITH WooCommerce Role Based Prices Premium by YITHEMES - https://yithemes.com/themes/plugins/yith-woocommerce-role-based-prices/

Releases

4 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
1.0.2 latest
Feb 4, 2020 6 years ago
woo-discount-rules-compatible.zip
22
Jan 6, 2020 6 years ago
woo-discount-rules-compatible.zip
171
Mar 28, 2019 7 years ago
woo-discount-rules-compatible.zip
4
Mar 28, 2019 7 years ago
woo-discount-rules-compatible.zip
8

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

B grade

Security

Compatibility Plugin for Woo Discount Rules 1.0.2 · audited by WP Registry

Medium-severity findings.

1 medium
Audited release
1.0.2
Findings
1
Worst severity
medium
Content hash
0c36c39389fc815848f1b7be…

Findings

  • medium CSRF: compatibility settings saved with no nonce

    csrf

    FWDRCIncludesAdmin::viewSettingPage() always calls saveConfig() then renders views/admin/settings.php. The form is method=post with hidden wdrc[save]=1 and checkbox names wdrc[<flag>]; there is no wp_nonce_field. saveConfig() trusts isset($_POST['wdrc']['save'])==1, walks every submitted key, sanitize_text_field()s values, json_encodes the map, and add_option/update_option('woo-discount-compatibility'). There is no check_admin_referer, wp_verify_nonce, or current_user_can inside the writer — the only gate is WordPress invoking the submenu callback after user_can_access_admin_page(). The menu is registered with capability edit_posts (too low for a WooCommerce pricing setting) but only when $submenu['woocommerce'] already exists, so on a default WC install the reachable victims are Shop Manager and Administrator, not Subscriber. An unauthenticated attacker who causes that victim to POST the form replaces the entire option (unchecked boxes are omitted, so a save-only POST clears all flags). Consumer FWDRCIncludesCompatibility::init() treats stored keys as booleans and registers filters that alter Discount Rules price math store-wide (currency division, has_price_override, skipping woocommerce_before_calculate_totals). Values are not echoed as HTML, so this is not stored XSS. First-party PHP has zero wp_verify_nonce calls.

    includes/admin.php:20-28,35-38,63-82

    Recommendation

    Add wp_nonce_field() to the settings form and check_admin_referer() at the start of saveConfig() before reading $_POST. Require current_user_can('manage_woocommerce') (or manage_options) in saveConfig itself, and pass that same capability to add_submenu_page instead of edit_posts. Allow-list the known flag keys rather than persisting every wdrc[] key.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.