Skip to content

User avatars should be served from permissions subdomain #1939

Description

@brandonfancher

As a follow-up to #977

User avatars are currently served from the target account's subdomain--which could be any valid account name and which can also represent third-party/untrusted apps. This forces apps that want to display user account avatars to allow any subdomain img-src in their CSP, which can lead to exfiltration methods if XSS is achieved. (See further explanation in #1935.)

Instead, we should serve (proxy?) these from the profiles app subdomain. In that way, app CSPs can trust profiles (a system app) instead of arbitrary third parties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions