Overview
Collected custom PHP/PHTML has no direct global calls to curl_exec, curl_multi_exec, fsockopen, pfsockopen, stream_socket_client or file_get_contents. Dynamic callable/alias ambiguity yields UNKNOWN. This explicit API restriction does not establish SSRF safety of framework adapters. Scope is completely collected app/code PHP/PHTML; missing, unreadable, oversized, linked, malformed or truncated eligible input prevents a clean PASS.
Why it Matters
Native network calls can bypass a project's shared timeout, destination and logging policy. Centralizing them makes those controls easier to apply consistently.
An approved client service can still be misconfigured, so API absence should not be described as SSRF resistance.
Verification Steps
Manual Verification
- Review direct global calls to curl_exec, curl_multi_exec, fsockopen, pfsockopen, stream_socket_client and file_get_contents.
- Check namespaced resolution, aliases and indirect call ambiguity.
- Verify full configured PHP/PHTML collection.
Command / Review Sample
// Prohibited direct-call illustration:
$response = file_get_contents($url);
// Review approved client adapters and their destination policies independently.
Use the assessed Magento project and the appropriate application or read-only review account. Replace example hosts, paths and identifiers with the assessment scope; configuration and source fragments are illustrative.
Remediation / Fix Guidance
- Inspect each named call and argument at the reported file/line. Trace input origin, receiver identity, authorization and output use before deciding whether to replace the API or document an approved exception to this explicit coding policy.
- Test the affected behavior and its real trust boundary. Replacing an API or wrapping a call does not by itself validate input or remove an exploit path.
- Rerun MB-0788 against the same release, profile and relevant file/key/package scope; compare the new evidence and inspect any independent collection gaps.
Examples
Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.
Fail Example
$response = file_get_contents($url);
Pass Example
$response = $approvedClient->get($approvedUrl);
// Illustrative reviewed adapter; validate destination/timeouts separately.
Scope and Evidence Limits
Rule revision: 1. Target modes: LOCAL.
Collected custom PHP/PHTML has no direct global calls to curl_exec, curl_multi_exec, fsockopen, pfsockopen, stream_socket_client or file_get_contents. Dynamic callable/alias ambiguity yields UNKNOWN. This explicit API restriction does not establish SSRF safety of framework adapters. Scope is completely collected app/code PHP/PHTML; missing, unreadable, oversized, linked, malformed or truncated eligible input prevents a clean PASS.
Exact opt-in coding policy, not a finding of confirmed exploitability or proof of the broader historical requirement. Runtime adapters, dependencies, generated code and files outside app/code remain outside this predicate.
Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.