Page MenuHomePhabricator

Fix a self-XSS hole in Diffusion
ClosedPublic

Authored by epriestley on Mar 20 2015, 9:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 8, 11:13 PM
Unknown Object (File)
Fri, Dec 20, 4:59 PM
Unknown Object (File)
Dec 19 2024, 8:14 AM
Unknown Object (File)
Dec 16 2024, 3:28 PM
Unknown Object (File)
Dec 12 2024, 12:43 AM
Unknown Object (File)
Dec 8 2024, 10:30 PM
Unknown Object (File)
Dec 8 2024, 7:37 PM
Unknown Object (File)
Dec 4 2024, 11:33 PM
Subscribers

Details

Reviewers
btrahan
chad
Commits
Restricted Diffusion Commit
rPac029d0a50e7: Fix a self-XSS hole in Diffusion
Summary

Via HackerOne. We aren't correctly escaping the date, so a user can XSS themselves by setting their date format creatively.

This construction is very unusual and I don't think we do anything similar elsewhere, so I can't come up with a systematic change which would prevent this in the general case.

Test Plan

Set date format to tag junk, got self-XSS before patch and proper escaping after the patch.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix a self-XSS hole in Diffusion.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, btrahan.
chad edited edge metadata.
This revision is now accepted and ready to land.Mar 20 2015, 9:49 PM
This revision was automatically updated to reflect the committed changes.