github / github/secure_headers

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

Offen
#470 17 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Ruby
Sterne
3.2k
Forks
253
Ø Merge
19 Std. 11 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ruby
Bereich
security
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.