dart-lang / dart-lang/pub-dev

Consider designing a redirector service for pub.dev

Open
#2,977 2 comments 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
Dart
Stars
944
Forks
184
Avg merge
1d 15h
Merged PRs (30d)
12

Description

To mask `referrer` header, we should consider making external links go through a redirect. This also hardens a few other XSS vectors.

See: https://en.wikipedia.org/w/index.php?title=URL_redirection&oldid=917753021#Referrer_masking

Note: It is critical that such a service only allows redirecting URLs embedded on pub.dev, and cannot be used for arbitrary URL redirection. Hence, URLs would need signing or something else.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.