Grork

@danilopolani · wordpress.org profile ↗
Member since
2015-09-04
Location
Milan, Italy
Employer
Meritocracy.is
Job title
Full Stack Developer
Authored
1
SVN commit access
0
Readme contributor
0
Combined install base
10 across 1 plugins

Alerts (0)

No open alerts.

Show 1 resolved alert
Critical code_pattern MyPress Resolved · fp_legacy_code_pattern_lowinstalls 16d ago
Slugmy-press
Patterndirect_mysqli_connect
Kindbuiltin
Version1.01
Hit count1
First hit
File
mypress.php
Line
106
Snippet
$db = new mysqli( $config['database']['hostname'], $config['database']['username'], $config['database']['password'], $config['database']['database'] );
Explanationplugin 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."
}

Plugins authored (1)

Plugin Version Installs Last updated Status
MyPress ·my-press 1.01 10 10y ago Active