Comments (10)
@collegian Just unzip your jar to some directory and pass that directory to scanner.
unzip your-jar.jar -d some-dir
from local-log4j-vuln-scanner.
@FilipDeVos Thank you. I guess the issue can be closed then.
from local-log4j-vuln-scanner.
Looks like the Go archive/zip
implementation is more strict than unzip. Can you provide the file?
from local-log4j-vuln-scanner.
i tried to reproduce the problem with other files and figured out, that all files are executable jar's
see for reference
https://docs.spring.io/spring-boot/docs/current/reference/html/executable-jar.html
to reproduce the problem you can take thr jar files from this project like the attached
database-1.0.0-SNAPSHOT.jar.zip
from local-log4j-vuln-scanner.
@t0xic-coder How did you resolve the problem? I'm seeing the same thing.
from local-log4j-vuln-scanner.
I looked a bit more into this and there might be a way to add this.
- anchore/syft#428 --> contains implementation of OpenZip
--> this project is apache 2 licensed, but https://www.apache.org/licenses/GPL-compatibility.html states that it is ok to include - golang/go#10464 --> contains a patch for archive/zip
from local-log4j-vuln-scanner.
For whatever reason I only now realized that I had code written for the simple "ZIP appended to something else" laying around in various incarnations.
@t0xic-coder, @FilipDeVos (or anyone else), could you please give the code in https://github.com/hillu/local-log4j-vuln-scanner/tree/feature/broken-zip a try and tell me that it works for your use-cases? Thanks.
from local-log4j-vuln-scanner.
@hillu I will take a look and try it out later today.
from local-log4j-vuln-scanner.
@FilipDeVos I have pushed the change to the master branch and tagged that in the meantime. Thanks in advance for looking into it, anyway.
from local-log4j-vuln-scanner.
I tested and it works properly. Thank you so much.
from local-log4j-vuln-scanner.
Related Issues (20)
- command line option for jar file matching HOT 7
- Misnamed executable for patching HOT 1
- Can't read magic from JAR file member HOT 1
- Detection flags jar files with JndiLookup.class removed (but JndiManager.class present) HOT 8
- Treat 2.12.2 as fixed version
- New magic number check failure HOT 2
- Strange "indicator" message from scanner HOT 1
- Patcher does not seem to fix WAR files HOT 1
- apache log4j 2.17 already out, please add HOT 1
- Even with exclude, tool scans folders HOT 4
- CVE-2021-45105 should mark 2.16 as vulnerable HOT 4
- How to use filter.go HOT 4
- Feature request: -exclude with wildcards HOT 1
- Just curious - why do you do f.Seek(0, END) twice? HOT 1
- Scans network shares on macOS HOT 9
- Unable to scan network filesystems HOT 5
- x86 support? HOT 3
- installation with go install HOT 2
- Crash when jar file is zero bytes HOT 2
- Virustotal 2 security vendors and no sandboxes flagged this file as malicious HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from local-log4j-vuln-scanner.