github / github/secure_headers

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

Aberta
#470 17 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Ruby
Estrelas
3.2k
Forks
253
Merge médio
19h 11min
PRs com merge (30d)
1

Descrição

# 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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
ruby
Domínio
security
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.