
Cloud Vulnerability DB
A community-led vulnerabilities database
The media-access endpoint accepts an arbitrary http:///https:// URL in the media GET parameter, fetches it server-side, and returns the response body to the client. There is no destination-host allow-list and no block of loopback / link-local / private / cloud-metadata ranges, so an attacker can make the server read internal-only resources (e.g. http://169.254.169.254/..., internal admin services) and receive their contents (full-read, not blind). On a definition file whose $options omit a global authentication block this is reachable unauthenticated; where global auth is set, any authenticated user can trigger it.
master, HEAD cf8b04e8)Entry point passes the raw request parameter straight in:
src/php/INTER-Mediator.php:114,121 - } else if (!isset($_POST['access']) && isset($_GET['media'])) { ... $mediaHandler->processing($dbProxyInstance, $options, $_GET['media']); }
Routing treats any http:///https:// value as a URL and dispatches it to the FileMaker container handler regardless of the configured DB backend:src/php/MediaAccess.php:131 $isURL = $this->isPossibleSchema($file); (true for http:/https:)src/php/MediaAccess.php:147 if (str_contains($file, '../')) blocks path traversal only; does NOT constrain the URL host.src/php/MediaAccess.php:153 $target = strval($isURL ? $file : "{$mediaRootDir}/{$file}"); - for a URL, $target is the attacker string verbatim.src/php/MediaAccess.php:259-275 maps http(s):// -> FileMakerContainer.
Sink - for any non-FileMaker backend (MySQL / PostgreSQL / SQLite / NullDB) the handler fetches the attacker URL and returns the body:src/php/Media/FileMakerContainer.php:77-84 - $content = file_get_contents($target); (allow_url_fopen=1) or curl_init($target); ... curl_exec(...). $target is attacker-controlled; no host/scheme allow-list, no block of loopback / RFC1918 / link-local.The same codebase defends the file path (MediaAccess.php:147 rejects ../; src/php/Media/FileURL.php:97-109 enforces realpath() + allowedMediaFileRootDirs) and the class scheme (MediaAccess.php:284-301 gates class:// against media-class-allowed), but there is NO equivalent allow-list for outbound URLs. The http:// branch was written to reach a configured FileMaker Server, yet the backend type is never checked before the generic fetch, so it runs on every non-FileMaker deployment against any host the attacker names.
Repo has no existing GitHub advisories. OSV lists only GHSA-w969-pq6x-267j / CVE-2017-6484 (reflected XSS in resetpassword.php, v5.5) - different file and class. This SSRF is net-new and content-distinct.
Present at master HEAD (cf8b04e8), release tag 15 (releases/latest) and the highest tag 16-8.5 (same sink + routing). <= 16-8.5; no fix.
Harness loads the real INTERMediator\ classes and makes the exact call the front controller makes (MediaAccess::processing($proxy, $options, $_GET['media'])) with a NullDB (non-FileMaker) backend and no authentication. A local HTTP server stands in for an internal-only resource.
php -S 127.0.0.1:9932 -t ssrf-target &
php ssrf_poc.php <IM>/src/php http://127.0.0.1:9932/secret.txt # file_get_contents branch
php -d allow_url_fopen=0 ssrf_poc.php <IM>/src/php http://127.0.0.1:9932/secret.txt # curl branchActual output (both branches identical):
[harness] dbClass = INTERMediator\DB\NullDB
[harness] driving MediaAccess->processing() with media=http://127.0.0.1:9932/secret.txt
=== CONTENT RETURNED TO CLIENT BY MediaAccess (SSRF response body) ===
INTERNAL-ONLY-SECRET-TOKEN-7f3a9c21-imediator-ssrf-proof
simulated AWS metadata: iam-role=admin
=== END ===The target server access log shows the server (not the client) issued the outbound GET for both the file_get_contents and curl paths. In a real deployment the target would be http://169.254.169.254/latest/meta-data/iam/security-credentials/... or an internal service; the response body is returned to the attacker (full-read). Confirmed present at HEAD cf8b04e8, tag 15, and tag 16-8.5.
SSRF (CWE-918). An unauthenticated attacker (on any definition omitting a global authentication block; otherwise any authenticated user) makes the server issue GET requests to hosts it can reach but the attacker cannot (loopback, RFC1918, link-local, cloud metadata) and receives the response body. This enables reading internal-only services and cloud instance-metadata credentials, plus internal port scanning. Only GET-style reads were demonstrated (I:N, no write claimed). Backend precondition: any non-FileMaker (PDO) backend, i.e. MySQL / PostgreSQL / SQLite, which is the common deployment.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."