YD Gateway 2Checkout for WooCommerce Security & Risk Analysis

wordpress.org/plugins/yd-2checkout-gateway-for-woocommerce

YD Gateway 2Checkout for WooCommerce provides an easy way to take credit card payments on your online store using 2Checkout.

10 active installs v0.2.2 PHP 5.6+ WP 4.4+ Updated Mar 10, 2021
2checkout-payment-with-paypal2checkout-woocommerce-payment2co-payment-gatewaypayment-gatewaywoocommerce-payment-gateway
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is YD Gateway 2Checkout for WooCommerce Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 5yr ago
Risk Assessment

The plugin 'yd-2checkout-gateway-for-woocommerce' version 0.2.2 presents a concerning security posture primarily due to its unprotected AJAX handlers. While the plugin demonstrates good practices in SQL query handling and avoids dangerous functions, the presence of four AJAX handlers without authentication checks creates a significant attack surface. This means any user, even unauthenticated ones, could potentially trigger these functions, leading to unintended actions or information disclosure. The taint analysis showing four flows with unsanitized paths further amplifies this concern, suggesting that user-supplied data might be processed without proper validation, potentially leading to code execution or data manipulation if these paths are reachable via the unprotected AJAX endpoints.

The plugin's vulnerability history is currently clean, with no recorded CVEs. This absence of known vulnerabilities, combined with the use of prepared statements for SQL, suggests a level of care in certain areas. However, the static analysis findings, particularly the high number of unprotected entry points and unsanitized flows, overshadow these strengths. The lack of nonce checks on AJAX handlers is a critical omission that directly contributes to the risk. In conclusion, while the plugin has some positive security attributes, the significant exposure through unprotected AJAX endpoints and potential unsanitized data handling poses a substantial risk that requires immediate attention.

Key Concerns

  • Unprotected AJAX handlers
  • Flows with unsanitized paths
  • Missing nonce checks on AJAX
  • Low percentage of output escaping
Vulnerabilities
None known

YD Gateway 2Checkout for WooCommerce Security Vulnerabilities

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

YD Gateway 2Checkout for WooCommerce Code Analysis

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

Output Escaping

57% escaped21 total outputs
Data Flows
4 unsanitized

Data Flow Analysis

4 flows4 with unsanitized paths
payment_wait (includes\classes\YD\YD_Gateway_Init.php:409)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
4 unprotected

YD Gateway 2Checkout for WooCommerce Attack Surface

Entry Points4
Unprotected4

AJAX Handlers 4

authwp_ajax_wc_yd_2co_action_gatewayincludes\classes\YD\YD_Payment_Request.php:19
noprivwp_ajax_wc_yd_2co_action_gatewayincludes\classes\YD\YD_Payment_Request.php:20
authwp_ajax_wc_yd_2co_action_waitincludes\classes\YD\YD_Payment_Request.php:22
noprivwp_ajax_wc_yd_2co_action_waitincludes\classes\YD\YD_Payment_Request.php:23
WordPress Hooks 8
actionwp_enqueue_scriptsincludes\classes\YD\YD_Gateway_Init.php:85
actionwpincludes\core.php:58
actioninitincludes\core.php:63
filterwoocommerce_payment_gatewaysincludes\core.php:74
actionadmin_initincludes\setup.php:31
actioninityd-gateway-2checkout.php:27
actionadmin_noticesyd-gateway-2checkout.php:34
actionplugins_loadedyd-gateway-2checkout.php:46
Maintenance & Trust

YD Gateway 2Checkout for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested5.7.15
Last updatedMar 10, 2021
PHP min version5.6
Downloads3K

Community Trust

Rating80/100
Number of ratings2
Active installs10
Developer Profile

YD Gateway 2Checkout for WooCommerce Developer Profile

axeleus

3 plugins · 1K total installs

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

How We Detect YD Gateway 2Checkout 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/yd-2checkout-gateway-for-woocommerce/core/settings.php/wp-content/plugins/yd-2checkout-gateway-for-woocommerce/includes/classes/YD/YD_Gateway_Init.php

HTML / DOM Fingerprints

CSS Classes
woocommerce-NoticeGroup
Data Attributes
name="ads_checkout"name="checkout"
JS Globals
TwoCoInlineCartydAjax
REST Endpoints
/wp-json/wc-yd-2co/v1/gateway
FAQ

Frequently Asked Questions about YD Gateway 2Checkout for WooCommerce