Skip to content

Conversation

@StefanKarpinski
Copy link
Member

@StefanKarpinski StefanKarpinski commented Oct 25, 2022

Using open's create flag when extracting files should prevent certain kinds of attacks if all our other defenses don't catch them, e.g. writing CON on Windows or /etc/passwd on UNIX. Closes #147.

@StefanKarpinski
Copy link
Member Author

@vtjnash, is this what you had in mind?

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Base: 97.37% // Head: 97.37% // No change to project coverage 👍

Coverage data is based on head (0dc24db) compared to base (6bfc114).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #148   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files           4        4           
  Lines         801      801           
=======================================
  Hits          780      780           
  Misses         21       21           
Impacted Files Coverage Δ
src/extract.jl 98.14% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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

Successfully merging this pull request may close these issues.

security improvement: open files with O_EXCL for writing

2 participants