Laravel: Empty array key validation bypass
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| laravelframework | — | 記載なし |
| composerlaravel/framework |
12.73.0 未満→ 12.73.0 |
12.73.0 |
| Packagistlaravel/framework |
12.73.0 未満→ 12.73.0 |
12.73.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
When validated input contains an array element whose key is an empty string, such as {"items": {"": {"name": "..."}}} in a JSON request, the rules attached to items.* are never applied to that element. ValidationRuleParser already matches empty segments with [^\.]*, but ValidationData::extractValuesForWildcards() and Validator::getExplicitKeys() still use [^\.]+, so the element is never gathered and wildcard parameters such as required_if:users.*.role,admin are not resolved for it. Rules like Rule::forEach() or array:name,qty on items.* are silently skipped for that element.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com