Skip to content

Change: add check for unsafe paths to MaliciousZipCheckService#1915

Merged
netomi merged 2 commits into
mainfrom
check-path-traversal
Jun 18, 2026
Merged

Change: add check for unsafe paths to MaliciousZipCheckService#1915
netomi merged 2 commits into
mainfrom
check-path-traversal

Conversation

@netomi

@netomi netomi commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

This PR adds an additional check to the MaliciousZipCheckService for potentially unsafe entry names.

Any extension containing entries with such names are rejected immediately.
As a consequence, the ArchiveUtil.isSafePath is not called anymore from the SecretCheckService and BlocklistCheckService as they will only operate on extensions that are considered to be safe.

The ArchiveUtil.isSafePath method has also been further extended for additional unsafe patterns, accompanied by unit tests/

@netomi netomi requested review from autumnfound and gnugomez June 16, 2026 12:20
Comment thread server/src/main/java/org/eclipse/openvsx/util/ArchiveUtil.java
Comment thread server/src/test/java/org/eclipse/openvsx/util/ArchiveUtilTest.java Outdated

@autumnfound autumnfound left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@netomi netomi merged commit 95b5aab into main Jun 18, 2026
4 checks passed
@netomi netomi deleted the check-path-traversal branch June 18, 2026 07:41
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.

3 participants