Skip to content

Security: Overly Permissive Content Security Policy#1177

Open
tomaioo wants to merge 1 commit intonextcloud:mainfrom
tomaioo:fix/security/overly-permissive-content-security-polic
Open

Security: Overly Permissive Content Security Policy#1177
tomaioo wants to merge 1 commit intonextcloud:mainfrom
tomaioo:fix/security/overly-permissive-content-security-polic

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented May 5, 2026

Summary

Security: Overly Permissive Content Security Policy

Problem

Severity: High | File: lib/Listener/AddContentSecurityPolicyListener.php:L29

The CSP in AddContentSecurityPolicyListener.php allows connections to all domains ('*') for connect-src, worker-src, and font-src. This enables the whiteboard to connect to arbitrary external servers, potentially exfiltrating data or receiving malicious content.

Solution

Replace wildcard '' with specific allowed domains for the collab backend. If the backend URL is configurable, use that specific domain instead of ''.

Changes

  • lib/Listener/AddContentSecurityPolicyListener.php (modified)

The CSP in AddContentSecurityPolicyListener.php allows connections to all domains ('*') for connect-src, worker-src, and font-src. This enables the whiteboard to connect to arbitrary external servers, potentially exfiltrating data or receiving malicious content.

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
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.

1 participant