Skip to content

CSP security issue due to it being ineffective #6195

@L1ghtn1ng

Description

@L1ghtn1ng

As it currently stands, the CSP is ineffective at preventing XSS issues due to having unsafe-inline and unsafe-eval in the script-src directive. The way to fix this would be to have all <script> tags have the nonce="" attribute that would then get injected inside of the quotes. This value has to be unique per request. As and idea of how to do it can be seen here https://cybermon.uk/posts/cloudflare_workers_pages_and_hugo/

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributor missing / timeoutincompleteIssue template missing info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions