Skip to content

Fix #249: Add EXCLUDE_URL_PREFIXES check#252

Merged
robhudson merged 1 commit intomainfrom
249-check-exclude-url-prefixes
Jan 8, 2025
Merged

Fix #249: Add EXCLUDE_URL_PREFIXES check#252
robhudson merged 1 commit intomainfrom
249-check-exclude-url-prefixes

Conversation

@robhudson
Copy link
Copy Markdown
Collaborator

@robhudson robhudson commented Jan 4, 2025

Check that EXCLUDE_URL_PREFIXES in settings is not a string.

If it is a string it can lead to a security issue where the string is treated as a list of characters, resulting in '/' matching all paths excluding the CSP header from all responses.

Copy link
Copy Markdown
Contributor

@stevejalim stevejalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, subtle footgun made safe

r+

@robhudson robhudson merged commit e9e4e27 into main Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants