Critical code_pattern
Resolved · fp_legacy_code_pattern_lowinstalls
2026-10-06 12:07:00 (12d ago)
| Slug | propertyhive |
|---|---|
| Pattern | unserialize_after_remote_call |
| Kind | builtin |
| Version | 2.4.0 |
| 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": "propertyhive",
"pattern": "unserialize_after_remote_call",
"kind": "builtin",
"version": "2.4.0",
"hit_count": 1,
"first_hit": {
"file": "includes/class-ph-licenses.php",
"line": 531,
"snippet": "L525: if ( 200 !== wp_remote_retrieve_response_code( $request ) || '' === wp_remote_retrieve_b \u2192 L531: $body = @unserialize($request['body'], ['allowed_classes' => false]);"
},
"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."
}