security-ops
Audited by Socket on Nov 1, 2026
3 alerts found:
Securityx3The snippet contains serious code-execution risks: attacker-controlled `$formula` could execute PHP, `$dir` could enable shell command injection, and the request-body message is rendered as template source. The origins and controls for `$formula` and `$dir` are not shown, so exploitability cannot be confirmed from this fragment alone. No network exfiltration, persistence, or other clear malicious behavior is present; severity is high if these values are attacker-controlled.
The fragment deserializes a client-controlled cookie, which can enable PHP object injection if compatible gadget classes are available. No malicious payload or other malicious behavior is evident in this fragment; severity is conditional on the surrounding application.
The supplied value is harmless, but direct use of eval on a variable is a serious code-injection risk if that variable can receive untrusted input. Replace eval with safe parsing or an explicitly constrained expression evaluator.