Default Payment Gateway for WooCommerce Security & Risk Analysis

wordpress.org/plugins/hw-default-payment-gateway-for-woocommerce

Manage the default chosen Payment method on checkout, easily!

100 active installs v1.7 PHP + WP 6.0.1+ Updated Nov 4, 2024
defaultdefault-checkoutdefault-payment-gateway-for-woocommercedefault-payment-methodwoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Default Payment Gateway for WooCommerce Safe to Use in 2026?

Generally Safe

Score 92/100

Default Payment Gateway for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1yr ago
Risk Assessment

The plugin "hw-default-payment-gateway-for-woocommerce" v1.7 exhibits a generally strong security posture based on the static analysis. The absence of dangerous functions, SQL injection vulnerabilities, file operations, and external HTTP requests is commendable. Furthermore, the use of prepared statements for all SQL queries and the presence of a nonce check on the single AJAX handler are positive security practices.

However, a significant concern arises from the lack of capability checks on the identified AJAX handler. While a nonce check is present, it does not verify user privileges, meaning any authenticated user could potentially trigger the AJAX action. The static analysis also reveals that only 70% of output is properly escaped, which could lead to cross-site scripting (XSS) vulnerabilities if the unescaped output is user-controllable. The vulnerability history being completely clear is a positive indicator of past development practices, but it does not negate the potential risks identified in the current code review.

In conclusion, the plugin demonstrates good foundational security with its handling of critical areas like SQL and file operations. The primary weaknesses lie in the insufficient authorization for its AJAX endpoint and potential for XSS due to incomplete output escaping. These areas require immediate attention to mitigate potential security risks.

Key Concerns

  • AJAX handler lacks capability checks
  • Output escaping is not comprehensive (30% unescaped)
Vulnerabilities
None known

Default Payment Gateway for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Default Payment Gateway for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
3
7 escaped
Nonce Checks
1
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

70% escaped10 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
do_hw_wc_default_gateway_save_chosen (hw-default-payment-gateway-for-woocommerce.php:114)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Default Payment Gateway for WooCommerce Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_hw_wc_default_gateway_save_chosenhw-default-payment-gateway-for-woocommerce.php:113
WordPress Hooks 7
actionadmin_enqueue_scriptshw-default-payment-gateway-for-woocommerce.php:41
actionwoocommerce_before_checkout_formhw-default-payment-gateway-for-woocommerce.php:47
filterwoocommerce_payment_gateways_setting_columnshw-default-payment-gateway-for-woocommerce.php:56
actionwoocommerce_payment_gateways_setting_column_wc_default_gatewayhw-default-payment-gateway-for-woocommerce.php:69
actionadmin_footerhw-default-payment-gateway-for-woocommerce.php:78
filterplugin_action_links_hw-default-payment-gateway-for-woocommerce/hw-default-payment-gateway-for-woocommerce.phphw-default-payment-gateway-for-woocommerce.php:130
actionbefore_woocommerce_inithw-default-payment-gateway-for-woocommerce.php:145
Maintenance & Trust

Default Payment Gateway for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedNov 4, 2024
PHP min version
Downloads2K

Community Trust

Rating100/100
Number of ratings1
Active installs100
Developer Profile

Default Payment Gateway for WooCommerce Developer Profile

giangel84

5 plugins · 1K total installs

90
trust score
Avg Security Score
94/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Default Payment Gateway for WooCommerce

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/hw-default-payment-gateway-for-woocommerce/assets/css/hw-woocommerce-default-gateway.css

HTML / DOM Fingerprints

CSS Classes
hw_wc_default_gatewayhw_wc_default_gateway_radio
Data Attributes
name="hw_wc_default_gateway_radio"id="value="class="hw_wc_default_gateway_radio"title="
JS Globals
hw_wc_default_gateway_save_chosen
REST Endpoints
/wp-json/hw_wc_default_gateway_save_chosen
FAQ

Frequently Asked Questions about Default Payment Gateway for WooCommerce