Skip to content

Clean Filepaths to ensure no XSS (Polish PR for 1164 and 1155)#1188

Merged
dfreilich merged 8 commits intomainfrom
polish-1164
May 18, 2021
Merged

Clean Filepaths to ensure no XSS (Polish PR for 1164 and 1155)#1188
dfreilich merged 8 commits intomainfrom
polish-1164

Conversation

@dfreilich
Copy link
Copy Markdown
Member

@dfreilich dfreilich commented May 18, 2021

Summary

This is a polish PR to incorporate the changes made in #1164 and #1155. One particular change in these PRs (for bugsbash) is that it reverts the changes made to the directory permissions – those cases were created and used in a testing context, so a) it broke the code, given that later parts of the program expected to write to those directories from a non-root user, and b) it is in a test, so it isn't quite as exposed as it would be otherwise.

Resolves #1164
Resolves #1155

Many thanks to @soniasingla and @rahulgrover99 for the work with this!

rahulgrover99 and others added 7 commits May 4, 2021 11:37
Signed-off-by: Rahul Grover <rahulgrover99@gmail.com>
Signed-off-by: Rahul Grover <rahulgrover99@gmail.com>
Signed-off-by: Rahul Grover <rahulgrover99@gmail.com>
Signed-off-by: Sonia Singla <soniasingla.1812@gmail.com>
A previous commit had restricted permissions on directories we create/move during our testing. Overall that is a very helpful process, but in this particular case, it was causing some of our ensuing code and tests to fail, given that they expected to be able to write to those directories; further, it was in a test context, where there is limited room for exposure of files. Given that, I've reverted this aspect of the PR. If someone wants to do a slower and more thorough analysis of the permissions we create, in order to ensure that they are appropriate and the most limited they can be, that would be gold.

Signed-off-by: David Freilich <david.freilich@appsflyer.com>
@dfreilich dfreilich requested a review from a team as a code owner May 18, 2021 19:53
@github-actions github-actions Bot added type/chore Issue that requests non-user facing changes. type/enhancement Issue that requests a new feature or improvement. labels May 18, 2021
@github-actions github-actions Bot added this to the 0.19.0 milestone May 18, 2021
@dfreilich dfreilich removed the type/chore Issue that requests non-user facing changes. label May 18, 2021
@github-actions github-actions Bot added the type/chore Issue that requests non-user facing changes. label May 18, 2021
@dfreilich dfreilich changed the title Polish 1164 Clean Filepaths to ensure no XSS (Polish PR for 1164 and 1155) May 18, 2021
@dfreilich dfreilich removed the type/chore Issue that requests non-user facing changes. label May 18, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2021

Codecov Report

Merging #1188 (bbfdb76) into main (4c63e9e) will not change coverage.
The diff coverage is 90.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1188   +/-   ##
=======================================
  Coverage   80.83%   80.83%           
=======================================
  Files         136      136           
  Lines        8278     8278           
=======================================
  Hits         6691     6691           
  Misses       1159     1159           
  Partials      428      428           
Flag Coverage Δ
os_linux 80.43% <90.00%> (ø)
os_macos 77.95% <80.00%> (ø)
os_windows 80.75% <90.00%> (ø)
unit 80.43% <90.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement Issue that requests a new feature or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants