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."
}