Repository navigation
【管理画面】コンテンツ情報の表示でエスケープされていない値がある問題を解決 - #4660
Merged
Merged
Conversation
固定ページ等の編集画面で、送信値のコンテンツ ID などをエスケープせずに 表示していたため、エスケープするよう修正。 あわせて、既存コンテンツの ID・プラグイン・種類・紐付け先は送信値で 書き換えられないようにした。 - コンテンツ情報(コンテンツ ID・実体 ID・作成日・更新日)と、 公開期間の表示を h() でエスケープ - Content エンティティで、既存のコンテンツの id・plugin・type・entity_id を 一括代入不可とする(新規作成時は従来どおり) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
検証環境での脆弱性スキャン(VAddy)で、固定ページ編集の送信値
content[id]が編集画面にエスケープされずに表示される箇所が見つかったため修正しました。実際の環境では CSRF 対策(CsrfProtectionMiddleware / FormProtection)により外部から送信値を誘導できないため、脆弱性としては扱わず通常の修正としています。
変更内容
content_info.php:コンテンツ ID・実体 ID・データ作成日・データ更新日の表示をh()でエスケープcontent_fields.php:公開期間(公開開始日・終了日)の表示をh()でエスケープContentエンティティ:既存のコンテンツについて、id・plugin・type・entity_idを一括代入不可とするテスト
ContentTestを追加(新規は代入可、既存は送信値で書き換わらないこと)🤖 Generated with Claude Code