Skip to content
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

chore: cherry-pick 933cc81c6bad from chromium #36222

Merged
merged 2 commits into from Nov 2, 2022

Conversation

ppontes
Copy link
Member

@ppontes ppontes commented Nov 1, 2022

Remove symlinks from FileChooserImpl folder upload result

FileChooserImpl is the browser-side implementation of
. When uploading a whole folder, it
currently uses DirectoryLister to list all the files in a
directory. The result also includes resolved symbolic links
(which may even hide deep in some subfolder), which is not a
desired behavior.

Therefore, this patch removes all symbolic links from the
result by checking each file against base::IsLink(). Since
the function needs blocking calls to access file data, the
job is sent to a worker pool thread.

Fixed: 1345275
Change-Id: I8ab58214c87944408c64b177e915247a7485925b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3866767
Reviewed-by: Austin Sullivan asully@chromium.org
Commit-Queue: Xiaocheng Hu xiaochengh@chromium.org
Reviewed-by: Mason Freed masonf@chromium.org
Reviewed-by: Alex Moshchuk alexmos@chromium.org
Cr-Commit-Position: refs/heads/main@{#1045491}

Notes: Security: backported fix for CVE-2022-3656.

@ppontes ppontes requested review from a team as code owners November 1, 2022 22:17
@ppontes ppontes added 21-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes labels Nov 1, 2022
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Nov 1, 2022
@ppontes ppontes force-pushed the cherry-pick/21-x-y/chromium/933cc81c6bad branch from 7d575ec to 644fbaf Compare November 2, 2022 09:07
@jkleinsc jkleinsc merged commit c5346bd into 21-x-y Nov 2, 2022
@jkleinsc jkleinsc deleted the cherry-pick/21-x-y/chromium/933cc81c6bad branch November 2, 2022 13:18
@release-clerk
Copy link

release-clerk bot commented Nov 2, 2022

Release Notes Persisted

Security: backported fix for CVE-2022-3656.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
21-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants