Critical code_pattern
Resolved · fp_legacy_code_pattern_lowinstalls
2026-10-06 12:07:43 (16d ago)
| Slug | my-press |
|---|---|
| Pattern | direct_mysqli_connect |
| Kind | builtin |
| Version | 1.01 |
| 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": "my-press",
"pattern": "direct_mysqli_connect",
"kind": "builtin",
"version": "1.01",
"hit_count": 1,
"first_hit": {
"file": "mypress.php",
"line": 106,
"snippet": "$db = new mysqli( $config['database']['hostname'], $config['database']['username'], $config['database']['password'], $config['database']['database'] );"
},
"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."
}