Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Add Support for Additional Java Binary Types #34

Open
pyotam opened this issue Jan 4, 2022 · 1 comment
Open

Add Support for Additional Java Binary Types #34

pyotam opened this issue Jan 4, 2022 · 1 comment

Comments

@pyotam
Copy link

pyotam commented Jan 4, 2022

Java binaries can be packages in several formats that are currently not supported by log4jscanner.

Examples formats the tool currently lacks support of are:

@ericchiang
Copy link
Member

We should already support PAR, KAR, and RAR files. Though IsJAR may need adjusting https://pkg.go.dev/github.com/google/log4jscanner/jar@main#IsJAR

An OSGi application is packaged as a JAR file, with extension .par. A PAR artifact offers several benefits:

https://docs.spring.io/s2-dmserver/2.0.0.M2/programmer-guide/html/ch04s02.html

A KAR file is essentially a jar (so a zip file) which contains a set of feature descriptor and bundle jar files.

https://karaf.apache.org/manual/latest/kar

Resource Adapter Archive (RAR) is regular jar file which is regular zip file with some predefined file structure (like manifest file). It could be read by any zip reader.

https://stackoverflow.com/a/30180261

No idea what the SAR format is though. Is that also just a ZIP file?

cc @ddworken

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants