Critical code_pattern
Mercado Lite — Multi-Vendor Marketplace for WooCommerce Resolved · fp_legacy_code_pattern_lowinstalls
12d ago
| Slug | mercado |
|---|---|
| Pattern | direct_mysqli_connect |
| Kind | builtin |
| Version | 2.3.0 |
| Hit count | 1 |
| First hit |
|
| Explanation | plugin instantiates `new mysqli($var['host'], ...)` — a direct MySQL connection bypassing `$wpdb`. Legitimate WordPress plugins always go through `$wpdb` (which already has the connection); a raw `mysqli` connect using parsed wp-config credentials is the credential-harvesting backdoor shape. |
View raw JSON
{
"slug": "mercado",
"pattern": "direct_mysqli_connect",
"kind": "builtin",
"version": "2.3.0",
"hit_count": 1,
"first_hit": {
"file": "public/rtwmer-class-mercado-public.php",
"line": 1629,
"snippet": "$conn = new mysqli($rtwmer_sql_details['host'],$rtwmer_sql_details['user'],$rtwmer_sql_details['pass'],$rtwmer_sql_details['db']);// phpcs:ignore WordPress.DB.RestrictedClasses.mysql__mysqli"
},
"explanation": "plugin instantiates `new mysqli($var['host'], ...)` \u2014 a direct MySQL connection bypassing `$wpdb`. Legitimate WordPress plugins always go through `$wpdb` (which already has the connection); a raw `mysqli` connect using parsed wp-config credentials is the credential-harvesting backdoor shape."
}