GHSA-r28f-v6v7-gm9w: 
PHP analisi e mitigazione delle vulnerabilità

Summary

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.

Details

Root cause (default branch 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.

Contrast proving intent (guard gap, not intended)

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.

Dedup

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.

Affected

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.

Proof of concept

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 branch

Actual 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.

Impact

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.


Fonte: NVD

Vulnerabilità correlate di PHP:

CVE ID

Gravità

Punteggio

Tecnologie

Nome del componente

Exploit CISA KEV

Dispone di patch

Data di pubblicazione

GHSA-qrxh-g29w-pchrCRITICAL9.1
  • PHP logoPHP
  • yajra/laravel-datatables-oracle
NoSìNov 28, 2026
GHSA-r28f-v6v7-gm9wHIGH8.6
  • PHP logoPHP
  • inter-mediator/inter-mediator
NoNoNov 28, 2026
GHSA-gqm7-fq99-9hmmHIGH7.5
  • PHP logoPHP
  • yajra/laravel-datatables-oracle
NoSìNov 28, 2026
GHSA-7h52-wmhj-vrvfHIGH7.1
  • PHP logoPHP
  • ianm/follow-users
NoSìNov 28, 2026
GHSA-2vpq-v76w-pfwmMEDIUM6.1
  • PHP logoPHP
  • cecil/cecil
NoSìNov 28, 2026

Valutazione gratuita delle vulnerabilità

Valuta la tua postura di sicurezza del cloud

Valuta le tue pratiche di sicurezza del cloud in 9 domini di sicurezza per stabilire un benchmark del tuo livello di rischio e identificare le lacune nelle tue difese.

Richiedi valutazione

Ulteriori risorse Wiz

Richiedi una demo personalizzata

Pronti a vedere Wiz in azione?

"La migliore esperienza utente che abbia mai visto offre piena visibilità ai carichi di lavoro cloud."
David EstlickCISO (CISO)
"Wiz fornisce un unico pannello di controllo per vedere cosa sta succedendo nei nostri ambienti cloud."
Adam FletcherResponsabile della sicurezza
"Sappiamo che se Wiz identifica qualcosa come critico, in realtà lo è."
Greg PoniatowskiResponsabile della gestione delle minacce e delle vulnerabilità