Clarify CORS validation in 3.4.2 to explicitly reject 'null' origin

オープン
#3,322 コメント 12 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@elarlang がすでに取り組んでいます。

2026年1月7日 から。

評価

この issue はまだ評価されていません。

説明

1) Discussion ongoing V3 (prev V50)
Requirement Referenced

3.4.2 - Browser Security Mechanism Headers

Description of the Issue

The current text for requirement 3.4.2 mandates validating the Origin header against an allowlist but does not explicitly warn against accepting the null origin.

The null origin is a specific edge case generated by browsers in scenarios such as sandboxed iframes or local file access. If an application's allowlist is not strict enough (or if it reflects the origin blindly), an attacker can use a sandboxed iframe to bypass CORS policies by sending Origin: null.

Proposed Change

I propose updating the requirement text to explicitly mention rejecting null unless it is strictly required by the architecture.

Current Text:

...validated against an allowlist of trusted origins. When 'Access-Control-Allow-Origin: *' needs to be used...

Proposed Text:

...validated against an allowlist of trusted origins (specifically rejecting the null origin unless strictly required). When 'Access-Control-Allow-Origin: *' needs to be used...

Motivation

This clarification ensures that developers and security testers specifically verify that the application does not inadvertently allow the null origin, closing a common bypass vector for CORS protections.

主要言語
HTML
スター
3.9k
フォーク
865
平均マージ
3日 4時間
マージ済み PR(30日)
19

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OWASP/ASVS のほかの issue

OWASP/ASVS の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。