Critical code_pattern
Resolved · false_positive_defensive_string_check
2026-04-30 15:25:29 (2d ago)
| Slug | security-ninja |
|---|---|
| Pattern | serialized_admin_role |
| Kind | builtin |
| Version | 5.281 |
| Hit count | 2 |
| First hit |
|
| Explanation | plugin source contains `s:13:"administrator"` — the PHP-serialized representation of the `administrator` role meta value. Used to bypass `wp_insert_user()` by writing directly to `wp_usermeta` with a hand-crafted capabilities string. Near-zero FP because legit code uses `WP_User::set_role()` instead of building the serialized form by hand. |
View raw JSON
{
"slug": "security-ninja",
"pattern": "serialized_admin_role",
"kind": "builtin",
"version": "5.281",
"hit_count": 2,
"first_hit": {
"file": "modules/events-logger/events-logger.php",
"line": 206,
"snippet": "'%s:13:\"administrator\"%',"
},
"explanation": "plugin source contains `s:13:\"administrator\"` \u2014 the PHP-serialized representation of the `administrator` role meta value. Used to bypass `wp_insert_user()` by writing directly to `wp_usermeta` with a hand-crafted capabilities string. Near-zero FP because legit code uses `WP_User::set_role()` instead of building the serialized form by hand."
}