WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-simple-user-level-discount

Woocommerce - Simple user-level discount WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-

A simple Woocommerce plugin to group users together and provide percentage based discounts to those groups.

★ 2stars
10release downloads
1.0.1latest · 6 years ago

Install

Download woocommerce-simple-user-level-discount.zip From the 1.0.1 release on GitHub, Jan 2, 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/webfoo/woocommerce-simple-user-level-discount/releases/download/1.0.1/woocommerce-simple-user-level-discount.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

alt text

What's this?

This plugin adds a simple way to create groups of customers and provide a percentage based discount on those groups.

Install

Download (or pull) this into your WordPress plugins directory.

Screenies

Editing the user-groups Editing the user-groups

Assigning a user to a group Assigning a user to a group

Releases

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

Tag
Published
Assets
Downloads
1.0.1 latest
Jan 2, 2020 6 years ago
woocommerce-simple-user-level-discount.zip
9
Jan 2, 2020 6 years ago
woocommerce-simple-user-level-discount.zip
1
C- grade

Security

Woocommerce - Simple user-level discount 1.0.0 · audited by WP Registry

High-severity findings.

1 high
Audited release
1.0.0
Findings
1
Worst severity
high
Content hash
2e08c894c255f490b3468ddf…

Findings

  • high Customers can self-assign discount tiers on their profile

    missing_capability

    show_user_profile / personal_options_update expose a Customer Type <select> listing every configured discount percentage. save_extra_user_profile_fields only checks current_user_can('edit_user', $user_id), which subscribers pass for their own account, then writes unsanitized $_POST['customer_type'] to user meta. get_users_discount_amount() later applies that meta as a negative cart fee. Any customer can grant themselves the maximum configured discount (financial fraud against the merchant).

    includes/class-woocommerce-simple-user-level-discount-user-settings.php:41-48

    Recommendation

    Only show/save customer_type when current_user_can('manage_woocommerce') or edit_users; never allow a user to set their own discount tier. Sanitize against the known discount keys.

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.