Open Bug 1430748 Opened 7 years ago Updated 2 years ago

[Meta] Unify the behavior of about: pages within Firefox

Categories

(Core :: DOM: Security, enhancement, P3)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: ckerschb, Assigned: ckerschb)

References

(Depends on 3 open bugs)

Details

(Keywords: meta, Whiteboard: [domsecurity-meta])

Currently, Firefox hosts 40+ about: pages where roughly half of which are System Privileged and half of which are Content Privileged. System Privileged about: pages have full access to internal APIs whereas Content Privileged about: pages rely on various implementations to transfer data between content and privileged components within the browser. Additionally, some of the content privileged about: pages are accessible from web content. Ad hoc security checks, which are scattered throughout the browser, enforce that the various data transfers between content privileged and system privileged land (mostly realized through custom events) are trusted. To sum it up, we can clean up legacy implementations of about: pages and improve the current behavior in the following ways: * First, assess all about: pages and evaluate whether they need to be accessible from web content or not and additionally whether they need to be system privileged or can be content privileged. * Second, unify implementations (e.g. expose attributes to about: pages through webidl) which allows to enforce security checks at specific locations within the codebase. * Third, load all JS from external files and apply a CSP to about: pages which disallows execution of inline scripts. Bonus Points: * Have all about: pages register in a single place/file in our codebase (currently it’s in nsAboutRedirector, AboutRedirector, nsAboutCache, and AboutPages.jsm.) Benefits and Synergy Effects: * Unified structure for all about: pages * Unified Security Model * Code cleanup * Clear structure for new about: pages to be added
Assignee: nobody → ckerschb
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [domsecurity-meta]
Depends on: 1430750
Depends on: 1430751
Depends on: 1436808
Depends on: 965637
Depends on: 1438624
Depends on: 1449843
Depends on: 1449845
Depends on: 1449872
Depends on: 1473549
Depends on: 1492063
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.