Critical code_pattern
Resolved · fp_legacy_code_pattern_lowinstalls
2026-10-06 05:05:37 (16d ago)
| Slug | botbanish-firewall-client |
|---|---|
| Pattern | direct_mysqli_connect |
| Kind | builtin |
| Version | 9.0.05 |
| 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": "botbanish-firewall-client",
"pattern": "direct_mysqli_connect",
"kind": "builtin",
"version": "9.0.05",
"hit_count": 1,
"first_hit": {
"file": "bot/Subs/BotBanish_Subs_DumpDatabase.php",
"line": 428,
"snippet": "$conn = new mysqli($dbInfo['server'], $dbInfo['username'], $dbInfo['password'], $dbInfo['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."
}