Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shareable URLs #174

Open
jace opened this issue Sep 20, 2017 · 0 comments
Open

Shareable URLs #174

jace opened this issue Sep 20, 2017 · 0 comments

Comments

@jace
Copy link
Member

jace commented Sep 20, 2017

This ticket describes an issue that may or may not be relevant in present browser environments.

Boxoffice currently generates random URLs that buyers can share with attendees to fill out attendee details. These URLs do not require any authentication. This may be a problem if the browser's history is vulnerable to hijack by (say) a malicious browser extension. (Previously, HTTP sniffing by network intermediaries was also a risk.)

This can be mitigated somewhat by using a two-part URL, in the form of .../ticket_id/secret. When this URL is requested, the server sets a HttpOnly cookie with the contents of the secret and redirects the browser (301? 302? 303?) to a new URL that doesn't include the secret: .../ticket_id. This second URL checks for the presence of the secret in the cookie before allowing the page to be rendered.

By doing this, URLs cannot be reloaded from browser history once the cookie expires. They can only be reloaded by using the original link. The original link is never seen by JavaScript, protecting it from malicious browser extensions.

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

No branches or pull requests

1 participant