github / github/secure_headers

nonced tag helpers including nonce directive in csp has potential to break applications

未關閉
#470 17 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Ruby
星號
3.2k
分支
253
平均合併
19 小時 11 分鐘
30 天內合併 PR
1

描述

# Bugs

## Nonced tag helpers including nonce directive in csp has potential to break applications

### Problem

Given an application with inline script tags, and a CSP that allows them with `'unsafe-inline'`, using `nonced_javascript_tag` will cause a nonce directive to appear in the CSP header. Modern browsers will then ignore the `'unsafe-inline'` directive and all other script tags without a nonce will cease to be executed.

貢獻指南

開啟貢獻指南

研究方向

Begin at the nonced_javascript_tag helper and trace how it contributes to the CSP header. Reproduce an application using 'unsafe-inline' with other inline scripts, then verify that nonce-bearing scripts remain supported without preventing those other scripts from executing.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
ruby
領域
security
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。