ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/tomcat/security/TestSecurity2025Http2.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/tomcat/security/TestSecurity2025Http2.java
Status
scanned
Type
file
Name
TestSecurity2025Http2.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2374 (2.3 KB)
MD5
6887e3621438481771cb94b3a3b97b7e
SHA1
a7016e57da40035f7f00d5a6dc0a180a9a1591a4
SHA256
48c407ca9d1fb2bc831d9cd7bff12ff0afd018f65ce24896109fd7554e64c458
SHA512

      
    
SHA1_git
ed8330c7df0ed010cbee6fd77fac9f07b102b315
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestSecurity2025Http2.java | 2.3 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.security; import java.io.IOException; import org.junit.Assert; import org.junit.Test; import org.apache.coyote.http2.Http2TestBase; public class TestSecurity2025Http2 extends Http2TestBase { /* * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-53506 * * Fixed in * 11.0.9 https://github.com/apache/tomcat/commit/be8f330f83ceddaf3baeed57522e571572b6b99b * 10.1.43 https://github.com/apache/tomcat/commit/2aa6261276ebe50b99276953591e3a2be7898bdb * 9.0.107 https://github.com/apache/tomcat/commit/434772930f362145516dd60681134e7f0cf8115b */ @Test public void testCVE_2025_53506() throws Exception { enableHttp2(100); configureAndStartWebApplication(); openClientConnection(false, false); doHttpUpgrade(); sendClientPreface(); validateHttp2InitialResponse(100); int streamId = 3; Throwable t = null; try { /* * Note: The client will create streams and send requests faster than Tomcat can process them so the * concurrent stream count will be well above 100 by the time the client sees the exception. However, * Tomcat will only have processed the first 100. */ while (true) { sendSimpleGetRequest(streamId); streamId += 2; } } catch (IOException ioe) { t = ioe; } Assert.assertNotNull(t); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
43.91
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-53506 29 29
https://github.com/apache/tomcat/commit/be8f330f83ceddaf3baeed57522e571572b6b99b 32 32
https://github.com/apache/tomcat/commit/2aa6261276ebe50b99276953591e3a2be7898bdb 33 33
https://github.com/apache/tomcat/commit/434772930f362145516dd60681134e7f0cf8115b 34 34