脆弱性データベースGHSA-r28f-v6v7-gm9w

GHSA-r28f-v6v7-gm9w: 
PHP 脆弱性分析と緩和策

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.


ソース: NVD

関連 PHP 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

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

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者