Critical code_pattern
Resolved · false_positive_sample_payload
2026-04-29 03:28:31 (3d ago)
| Slug | wp-webhooks |
|---|---|
| Pattern | serialized_admin_role |
| Kind | builtin |
| Version | 3.4.1 |
| Hit count | 4 |
| 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": "wp-webhooks",
"pattern": "serialized_admin_role",
"kind": "builtin",
"version": "3.4.1",
"hit_count": 4,
"first_hit": {
"file": "core/includes/integrations/wordpress/triggers/create_user.php",
"line": 249,
"snippet": "0 => 'a:1:{s:13:\"administrator\";b:1;}',"
},
"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."
}