Skip to content

Java: Add ZipSlip query.#330

Merged
semmle-qlci merged 4 commits intogithub:masterfrom
aschackmull:java/zipslip
Oct 31, 2018
Merged

Java: Add ZipSlip query.#330
semmle-qlci merged 4 commits intogithub:masterfrom
aschackmull:java/zipslip

Conversation

@aschackmull
Copy link
Contributor

This adds the ZipSlip query to Java, improving on the initial port done by @pavgust.

I've added support for other archive formats as implemented by org.apache.commons.compress.archivers, and improved the sanitization detection.

The qhelp is mostly copy-pasted from the C# query, but some parts have been rewritten somewhat to refer to the corresponding Java classes and methods.

@yh-semmle
Copy link
Contributor

It seems worth accounting for this sanitizer pattern in the sanitizer detection, provided you agree it's safe.

@aschackmull
Copy link
Contributor Author

It seems worth accounting for this sanitizer pattern in the sanitizer detection, provided you agree it's safe.

I believe I already do account for that case?

@aschackmull
Copy link
Contributor Author

I believe I already do account for that case?

Of course, I should probably add it as a test case as well.

yh-semmle
yh-semmle previously approved these changes Oct 26, 2018
@yh-semmle
Copy link
Contributor

There are some conflicts in the change note file.

@aschackmull
Copy link
Contributor Author

Rebased.

@semmle-qlci semmle-qlci merged commit fa81084 into github:master Oct 31, 2018
@aschackmull aschackmull deleted the java/zipslip branch October 31, 2018 15:36
smowton added a commit to smowton/codeql that referenced this pull request Apr 16, 2022
…eterized-class

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants