allow_url_include warning must be consistent even with path with filters
オープン
まだ誰も着手していません。
Bug
Status: Needs Triage
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
I found this while looking into https://github.com/php/php-src/issues/10453
The following code:
Resulted in this output:
in the include with the same path but with filter, the warning does not mention allow_url_include=0
But I expected this output instead:
2x Warning: include(): data:// wrapper is disabled in the server configuration by allow_url_include=0 ... warning
PHP Version
any
Operating System
any
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンク先の3v4l再現コードから始め、同じdata://パスをフィルターありとなしで使用してinclude()を比較します。allow_url_include=0を処理するPHP includeの警告パスを追跡し、その後、両方の警告に期待される設定テキストが含まれていることを確認します。issueではソースファイルもテストも指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c, php
- 領域
- backend, security
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100