Security & Caching
Security & privacy
Who can change settings
Only administrators (manage_options), because settings decide where orders and data go. To let shop managers in:
add_filter( 'ck_capability', function () { return 'manage_woocommerce'; } );Custom HTML / JavaScript additionally needs the unfiltered_html capability.
Built-in protections
- Every admin action (activate / deactivate licence, exports, imports, deleting leads, test webhook, test message) checks the capability and a nonce.
- Output is escaped; every database query is prepared or built from fixed text.
- Public forms (order, lead, back-in-stock, cart capture) use a nonce, a hidden honeypot field, per-visitor and site-wide rate limits, duplicate suppression and size limits.
- Prices, stock, variations and totals are always taken from WooCommerce on the server.
Abuse limits
- The confirmation email to a customer never contains the free-text note, and is limited to 3 per address per day and 40 per hour site-wide.
- Automatic WhatsApp messages are capped (default 300 per hour, filter
ck_cloud_hourly_cap). - One abandoned-cart sequence per phone number per 7 days; at most 3 waiting stock alerts per number.
These limits cannot prove that a phone number belongs to the person typing it, so keep the consent box on and use approved templates.
Webhooks & secrets
- Webhooks: https only, private / local addresses blocked, optional HMAC-SHA256 signature. Order webhooks contain customer name, phone and email: only send them to services you trust and mention it in your privacy policy.
- Secrets (Cloud API token, webhook secret) are stored encrypted with a key derived from your WordPress salts. If you change the salts, enter them again. Export files never contain secrets.
Data retention & third-party connections
- Click statistics are deleted after 400 days; leads after the number of days you choose (default: kept).
- Uninstalling removes the plugin's tables, options and per-page boxes (on multisite for every site); WooCommerce orders are kept.
- Nothing is loaded from third-party servers by the plugin. It contacts
hedows.comonly for licence activation / refresh / updates,graph.facebook.comonly if you enable the Cloud API, and your own webhook URLs.
Behind a CDN or reverse proxy
All visitors may share one address for rate limits. Return the real visitor address (only if the header is set by your trusted proxy):
add_filter( 'ck_client_ip', function ( $ip ) { return $_SERVER['HTTP_CF_CONNECTING_IP'] ?? $ip; } );🛡️ Report a vulnerability privately to ChatKart (hedows.com) rather than in public support threads.
Caching
Pages containing the buttons can be cached safely: the nonce and logged-in prefill data are loaded through an uncached AJAX call when the popup opens.
- If you use an aggressive cache or a CDN, exclude
/wp-admin/admin-ajax.phpfrom caching. - After changing settings, clear the page cache.
