Page MenuHomePhabricator

Fix a self-XSS hole in Diffusion
ClosedPublic

Authored by epriestley on Mar 20 2015, 9:43 PM.
Tags
None
Referenced Files
F15459073: D12117.id.diff
Mon, Mar 31, 9:38 AM
F15421300: D12117.id29140.diff
Fri, Mar 21, 10:27 PM
F15389476: D12117.id29143.diff
Sat, Mar 15, 5:19 AM
F15381579: D12117.diff
Mar 14 2025, 8:27 AM
F15379833: D12117.diff
Mar 13 2025, 11:39 PM
F15335718: D12117.id29140.diff
Mar 8 2025, 5:28 PM
F15283730: D12117.id29140.diff
Mar 4 2025, 8:22 AM
Unknown Object (File)
Feb 28 2025, 4:27 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
Branch
xss1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4930
Build 4948: [Placeholder Plan] Wait for 30 Seconds

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.