Page MenuHomePhabricator

Add restrictive CSP to auth.wikimedia.org
Open, Needs TriagePublic

Description

auth.wikimedia.org has restricted functionality and no user JS, so it doesn't need to support external resources and could just use an aggressive CSP (e.g. no eval, no external domains other than the canonical domain). Since the XSS threat surface is much smaller than for normal wikis, this is low stakes, but could be an easy-to-implement defense in depth (and also a marginal performance improvement - our standard CSP headers are now at 3K).

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr renamed this task from Add aggressive CSP for auth.wikimedia.org to Add restrictive CSP to auth.wikimedia.org.Mar 11 2026, 11:45 AM
Tgr updated the task description. (Show Details)
pmiazga subscribed.

Moving to needs refinement as it requires a discussion on whether we're doing this this quarter.