Critical code_pattern
Starter Sites & Templates by Neve Resolved · benign_architectural_concern
1d ago
| Slug | templates-patterns-collection |
|---|---|
| Pattern | unserialize_after_remote_call |
| Kind | builtin |
| Version | 1.2.27 |
| Hit count | 1 |
| First hit |
|
| Explanation | a remote HTTP fetch (`wp_remote_*` / `curl_exec`) is followed by `@unserialize` within the same file — classic PHP Object Injection C2 gadget. The error-suppressed form is the tell: legit code wants to know when deserialize fails; attackers suppress so malformed gadgets do not leak. A real finding regardless of author intent: any plugin that deserializes remote responses without validation is a latent RCE chain if the remote endpoint is ever compromised. |
View raw JSON
{
"slug": "templates-patterns-collection",
"pattern": "unserialize_after_remote_call",
"kind": "builtin",
"version": "1.2.27",
"hit_count": 1,
"first_hit": {
"file": "includes/TI_Beaver.php",
"line": 167,
"snippet": "L148: $response = wp_remote_get( esc_url_raw( $url ) ); \u2192 L167: if ( @unserialize( $serialized_string ) !== true && preg_match( '/^[aOs]:/', $serialized"
},
"explanation": "a remote HTTP fetch (`wp_remote_*` / `curl_exec`) is followed by `@unserialize` within the same file \u2014 classic PHP Object Injection C2 gadget. The error-suppressed form is the tell: legit code wants to know when deserialize fails; attackers suppress so malformed gadgets do not leak. A real finding regardless of author intent: any plugin that deserializes remote responses without validation is a latent RCE chain if the remote endpoint is ever compromised."
}