1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-16 11:52:40 +01:00
phorge-phorge/src/applications/differential
epriestley 7626ec0ce1 Correct an issue where "View Raw File" in Differential generated a file with overbroad permissions
Summary:
Via HackerOne. When you view a raw file in Differential, we currently generate a permanent file with default permissions. This may be incorrect: default permissions may be broader than the diff's permissions.

The other three methods of downloading/viewing raw files ("Download" in Diffusion and Differential, "View Raw" in Diffusion and Differential) already apply policies correctly and generate temporary files. However, this workflow was missed when other workflows were updated.

Beyond updating the workflow, delete any files we've generated in the past. This wipes the slate clean on any security issues and frees up a little disk space.

Test Plan:
  - Ran migration script, saw existing files get purged.
  - Did "View Raw File", got a new file.
  - Verified that the file was temporary and properly attached to the diff, with "NO ONE" permissions.
  - Double-checked that Diffusion already runs policy logic correctly and applies appropriate policies.
  - Double-checked that "Download Raw Diff" in Differential already runs policy logic correctly.
  - Double-chekced that "Download Raw Diff" in Diffusion already runs policy logic correctly.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D17504
2017-03-16 09:51:48 -07:00
..
__tests__ phtize all the things 2015-05-22 21:16:39 +10:00
application Remove counts from home navigation 2017-01-21 13:55:40 -08:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
command Define Differential email action in terms of EditEngine 2017-01-02 13:25:45 -08:00
conduit Remove some remnants of the old ways commit mesage fields worked from Differential 2017-01-13 15:29:07 -08:00
config Remove Differential "Title" custom field 2016-12-16 10:23:26 -08:00
constants Restore "Accept", "Reject" and "Resign" actions to Differential on EditEngine 2016-12-31 10:09:27 -08:00
controller Correct an issue where "View Raw File" in Differential generated a file with overbroad permissions 2017-03-16 09:51:48 -07:00
customfield Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
doorkeeper Remove email prefixes from doorkeeper titles 2016-01-28 18:48:28 +00:00
edge Make the revision graph view more flexible 2016-07-01 10:40:49 -07:00
editor Get "Create Revision" out of Quick Create menu for now 2017-01-13 09:00:44 -08:00
engine Make yellow "draft" bubbles more generic 2017-01-13 09:02:19 -08:00
engineextension Convert Differential to new layout 2016-03-12 13:04:21 -08:00
exception Remove an unused class 2015-01-03 09:07:32 +11:00
field Restore "Auditor" as an alias for the commit message field "Auditors" 2017-02-03 09:14:32 -08:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
herald Fix a Herald issue where testing commits against rules with revision-related conditions would fail 2016-09-08 17:16:40 -07:00
landing Make "Land Revision" button state consistent, prevent non-accepted lands 2015-10-27 18:51:59 +00:00
lipsum Make bin/lipsum generate hanldle generator keys and arguments more clearly 2017-02-27 09:09:28 -08:00
mail Improve HTML mail rendering of inline patches 2016-05-12 12:13:40 -07:00
management Remove most of the legacy hunk code 2016-12-13 14:34:36 -08:00
parser Always parse the first line of a commit message as a title 2017-01-01 09:56:15 -08:00
phid Render revision and audit state icons in Maniphest 2017-01-12 13:23:13 -08:00
query Put revisions waiting on other reviewers in their own bucket 2017-02-27 10:47:15 -08:00
relationships Convert all standard relationship-editing actions to modern Relationships code 2016-06-29 11:24:52 -07:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
render Add a "Red/Green Colorblind" accessibility mode, make all web UIs and email respect it 2017-02-23 10:57:39 -08:00
search Convert all "DocumentIndexers" into "FulltextEngines" 2015-12-21 17:25:23 -08:00
storage Add dedicated "reviewers" storage to Differential and do double writes 2017-03-14 11:51:51 -07:00
typeahead Allow commits to be queried by repository using the tagged(...) typehaead function 2017-02-27 10:46:55 -08:00
view Make yellow "draft" bubbles more generic 2017-01-13 09:02:19 -08:00
xaction Add dedicated "reviewers" storage to Differential and do double writes 2017-03-14 11:51:51 -07:00
DifferentialGetWorkingCopy.php Extend from Phobject 2015-06-15 18:02:27 +10:00