Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider tightening the CSP policy when serving untrusted content #3034

Open
jvoisin opened this issue Dec 22, 2024 · 0 comments
Open

Consider tightening the CSP policy when serving untrusted content #3034

jvoisin opened this issue Dec 22, 2024 · 0 comments
Labels

Comments

@jvoisin
Copy link
Collaborator

jvoisin commented Dec 22, 2024

Currently, when serving untrusted content, miniflux uses the following CSP policy:

$ git grep '"Content-Security-Policy", `default-src'
internal/http/response/html/html.go:40: builder.WithHeader("Content-Security-Policy", `default-src 'self'`)
internal/http/response/html/html.go:64: builder.WithHeader("Content-Security-Policy", `default-src 'self'`)
internal/ui/feed_icon.go:29:            b.WithHeader("Content-Security-Policy", `default-src 'self'`)
internal/ui/proxy.go:147:               b.WithHeader("Content-Security-Policy", `default-src 'self'`)
$

It would be nice to use sandbox instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant