Find, fix and prevent vulnerabilities in your code.
medium severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0
Detailed paths
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.integration:spring-integration-amqp@7.0.0 › org.springframework.amqp:spring-rabbitmq-client@4.0.0 › com.rabbitmq.client:amqp-client@0.8.0 › io.netty:netty-codec-http@4.2.7.Final
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.integration:spring-integration-amqp@7.0.0 › org.springframework.amqp:spring-rabbitmq-client@4.0.0 › com.rabbitmq.client:amqp-client@0.8.0 › io.netty:netty-codec-http@4.2.7.Final
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-reactor-netty@4.0.0 › org.springframework.boot:spring-boot-reactor-netty@4.0.0 › io.projectreactor.netty:reactor-netty-http@1.3.0 › io.netty:netty-codec-http@4.2.7.Final
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-reactor-netty@4.0.0 › org.springframework.boot:spring-boot-reactor-netty@4.0.0 › io.projectreactor.netty:reactor-netty-http@1.3.0 › io.netty:netty-codec-http2@4.2.7.Final › io.netty:netty-codec-http@4.2.7.Final
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-reactor-netty@4.0.0 › org.springframework.boot:spring-boot-reactor-netty@4.0.0 › io.projectreactor.netty:reactor-netty-http@1.3.0 › io.netty:netty-codec-http3@4.2.7.Final › io.netty:netty-codec-http@4.2.7.Final
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-reactor-netty@4.0.0 › org.springframework.boot:spring-boot-reactor-netty@4.0.0 › io.projectreactor.netty:reactor-netty-http@1.3.0 › io.projectreactor.netty:reactor-netty-core@1.3.0 › io.netty:netty-handler-proxy@4.2.7.Final › io.netty:netty-codec-http@4.2.7.Final
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to CRLF Injection in HttpRequestEncoder, due to improper sanitization of a URI with line-breaks in the DefaultHttpRequest class. An attacker can manipulate HTTP requests to cause parser desynchronization, request smuggling, and response splitting by including line break characters in requests.
PoC
public static void main(String[] args) {
EmbeddedChannel client = new EmbeddedChannel();
client.pipeline().addLast(new HttpClientCodec());
EmbeddedChannel server = new EmbeddedChannel();
server.pipeline().addLast(new HttpServerCodec());
server.pipeline().addLast(new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
System.out.println("Processing msg " + msg);
}
});
DefaultHttpRequest request = new DefaultHttpRequest(
HttpVersion.HTTP_1_1,
HttpMethod.GET,
"/s1 HTTP/1.1\r\n" +
"\r\n" +
"POST /s2 HTTP/1.1\r\n" +
"content-length: 11\r\n\r\n" +
"Hello World" +
"GET /s1"
);
client.writeAndFlush(request);
ByteBuf tmp;
while ((tmp = client.readOutbound()) != null) {
server.writeInbound(tmp);
}
}
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.129.Final, 4.2.8.Final or higher.
References
medium severity
- Module: ch.qos.logback:logback-classic
- Introduced through: org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0
Detailed paths
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.boot:spring-boot-starter-amqp@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-amqp@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream@5.0.0 › org.springframework.boot:spring-boot-starter-validation@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.cloud:spring-cloud-stream@5.0.0 › org.springframework.boot:spring-boot-starter-validation@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-jackson@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-reactor-netty@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21
Dual license: EPL-1.0, LGPL-2.1
medium severity
- Module: ch.qos.logback:logback-core
- Introduced through: org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0
Detailed paths
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.boot:spring-boot-starter-amqp@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-amqp@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream@5.0.0 › org.springframework.boot:spring-boot-starter-validation@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.cloud:spring-cloud-stream@5.0.0 › org.springframework.boot:spring-boot-starter-validation@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-jackson@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit-core@5.0.0 › org.springframework.boot:spring-boot-starter-webflux@4.0.0 › org.springframework.boot:spring-boot-starter-reactor-netty@4.0.0 › org.springframework.boot:spring-boot-starter@4.0.0 › org.springframework.boot:spring-boot-starter-logging@4.0.0 › ch.qos.logback:logback-classic@1.5.21 › ch.qos.logback:logback-core@1.5.21
Dual license: EPL-1.0, LGPL-2.1
low severity
- Vulnerable module: commons-codec:commons-codec
- Introduced through: org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0
Detailed paths
-
Introduced through: Activiti/activiti-cloud-events-adapter@Activiti/activiti-cloud-events-adapter#63adbd1641e1c48f57e501e9f4a6581ad1ae093e › org.springframework.cloud:spring-cloud-starter-stream-rabbit@5.0.0 › org.springframework.cloud:spring-cloud-stream-binder-rabbit@5.0.0 › org.apache.httpcomponents:httpclient@4.5.14 › commons-codec:commons-codec@1.11
Overview
commons-codec:commons-codec is a package that contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.
Affected versions of this package are vulnerable to Information Exposure. When there is no byte array value that can be encoded into a string the Base32 implementation does not reject it, and instead decodes it into an arbitrary value which can be re-encoded again using the same implementation. This allows for information exposure exploits such as tunneling additional information via seemingly valid base 32 strings.
Remediation
Upgrade commons-codec:commons-codec to version 1.14 or higher.