-
Notifications
You must be signed in to change notification settings - Fork 207
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
fabric-chaincode-shim vulnerabilities #311
Comments
OK; I got a lot more precise in the above description. Two of these items have been addressed by the last PR, but two remain. |
Still a couple of examples that are hard-coded to reference
|
Do we want to force and/or hard-code fabric-chaincode-java to v2.5.0 in this example? https://github.com/hyperledger/fabric-chaincode-java/blob/main/examples/fabric-contract-example-maven/pom.xml#L15 Probably also a good idea to update the fabric-protos version from v0.1.3 to something in the v0.2.x range. https://github.com/hyperledger/fabric-chaincode-java/blob/main/examples/fabric-contract-example-maven/pom.xml#L51 |
Also another example here of an old JSON version being referenced: https://github.com/hyperledger/fabric-chaincode-java/blob/main/examples/fabric-contract-example-maven/pom.xml#L98-L103 |
I think all outstanding vulnerabilities in dependencies of fabric-chaincoide-shim have now been resolved. |
fabric-chaincode-shim
, which is imported here: https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-integration-test/build.gradle#L4, and thenjson-20220320.jar
is imported here: https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-shim/build.gradle#L49fabric-chaincode-integration-test
(https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-integration-test/build.gradle#L4) this time the dependency is onfabric-chaincode-shim
: https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-shim/build.gradle#L44C5-L44C5. Shim is dependent onorg.hyperledger.fabric.fabric-protos
v0.2.0, which is dependent on a vulnerable version of Guava: https://central.sonatype.com/artifact/org.hyperledger.fabric/fabric-protos/0.2.0/overview.fabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 50 in 40126d0
fabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 61 in 40126d0
io.opentelemetry:opentelemetry-proto
at 1.6.0-alpha, which includesprotobuf-java
at 3.20.1 as shown here: https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-proto/1.6.0-alpha. and ALSO,shim
includesgrpc-protobuf
at v1.46, as seen herefabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 55 in 40126d0
protobuf-java
at v3.20.1 as shown here: https://mvnrepository.com/artifact/io.grpc/grpc-protobuf/1.46.0, and also includesfabric-protos
at v0.2.0 as shown here:fabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 44 in 40126d0
fabric-protos
at v0.2.0 includesprotobuf-java
at v3.20.1 as shown here: https://mvnrepository.com/artifact/org.hyperledger.fabric/fabric-protos/0.2.0 ... AND ALSO I also see a link fromfabric-chaincode-java
in several examples that go tofabric-protos
v0.1.3, which includesprotobuf-java
at v3.19.4 -- examplefabric-chaincode-java/examples/fabric-contract-example-maven/pom.xml
Line 50 in 3b5b2cb
fabric-chaincode-java/fabric-chaincode-integration-test/src/contracts/bare-maven/pom.xml
Line 54 in 3b5b2cb
fabric-chaincode-java/fabric-chaincode-integration-test/src/contracts/wrapper-maven/pom.xml
Line 54 in 3b5b2cb
io.grpc.grpc-protobuf
to v1.45.4, which usesprotobuf-java
v3.19.6. However, this change does not address the dependency onio.opentelemetry:opentelemetry-proto
at 1.6.0-alpha, or the dependency onfabric-protos
at v0.2.0.The text was updated successfully, but these errors were encountered: