-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
security: add escape to arbitrary file access #23319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dduzgun-security this looks good. It'd be nice if we could add some test coverage to these checks, similar to what we have in TestPrevAlloc_StreamAllocDir_Error
.
Looks like other tests broke, working to fix them.
|
🤔 hmm, running the tests locally works but the CI seems to fail, do we have some sort of caching that may cause that? Local test results (on MacOS M2 23.5.0 Darwin Kernel Version 23.5.0 arm64)👇
|
@dduzgun-security this is what I'm getting locally with this branch checked out:
Looks like you're testing on macOS though and I'm testing on Linux (as is CI); might be worth checking that there isn't OS-specific behavior here. |
When I tried it on an ubuntu VM, the test passed Maybe something related with the GHA runner 🤔 I'll give it a shot with this container image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good, @dduzgun-security. Just a few more issues to get it ready to ship.
Co-authored-by: Tim Gross <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Just a few minor items to pick up and this should be good-to-merge
Co-authored-by: Tim Gross <[email protected]>
Co-authored-by: Tim Gross <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @dduzgun-security!
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Resolves
Arbitrary file write extracting an archive containing symbolic links
alerts by using the escape function.Ref: NET-9781 and NET-9776