Critical code_pattern
TNG WordPress Integration Resolved · serialized_admin_role_tng_genealogy_sso_bridge_leg
1mo ago
| Slug | tng-wordpress-plugin |
|---|---|
| Pattern | serialized_admin_role |
| Kind | builtin |
| Version | 10.1.4 |
| Hit count | 1 |
| 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": "tng-wordpress-plugin",
"pattern": "serialized_admin_role",
"kind": "builtin",
"version": "10.1.4",
"hit_count": 1,
"first_hit": {
"file": "tng.php",
"line": 478,
"snippet": "update_user_meta($wp_id, 'wp_capabilities', '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."
}