Skip to content

Commit fa72e44

Browse files
Merge pull request #650 from doyensec:spring4shell_detection_2
PiperOrigin-RevId: 790617129 Change-Id: Iadf9dbb233dcd434ea63bb4a78dd1dc5734490fa
2 parents 93c174e + 405444b commit fa72e44

7 files changed

Lines changed: 566 additions & 208 deletions

File tree

community/detectors/spring_framework_cve_2022_22965/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ plugins {
22
id 'java'
33
}
44

5-
group 'com.google.tsunami'
6-
version '1.0-SNAPSHOT'
5+
group = 'com.google.tsunami'
6+
version = '1.0-SNAPSHOT'
77

88
repositories {
99
maven { // The google mirror is less flaky than mavenCentral()
10-
url 'https://maven-central.storage-download.googleapis.com/repos/central/data/'
10+
url = 'https://maven-central.storage-download.googleapis.com/repos/central/data/'
1111
}
1212
mavenCentral()
1313
mavenLocal()
1414
}
1515

16-
17-
1816
dependencies {
1917
implementation "com.google.auto.value:auto-value-annotations:1.11.0"
2018
implementation("com.google.tsunami:tsunami-common") {
@@ -30,10 +28,10 @@ dependencies {
3028

3129
testImplementation "junit:junit:4.13.2"
3230
testImplementation "org.mockito:mockito-core:5.18.0"
31+
testImplementation "com.google.inject:guice:4.2.3"
32+
testImplementation "com.google.inject.extensions:guice-testlib:4.2.3"
3333
testImplementation "com.google.truth:truth:1.4.4"
3434
testImplementation "com.google.truth.extensions:truth-java8-extension:1.4.4"
3535
testImplementation "com.google.truth.extensions:truth-proto-extension:1.4.4"
3636
testImplementation "com.squareup.okhttp3:mockwebserver:3.12.0"
37-
38-
implementation "org.jsoup:jsoup:1.9.2"
3937
}

community/detectors/spring_framework_cve_2022_22965/src/main/java/com/google/tsunami/plugins/detectors/spring/SpringCve202222965Detector.java

Lines changed: 0 additions & 183 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.tsunami.plugins.detectors.spring4shell;
18+
19+
import static java.lang.annotation.ElementType.FIELD;
20+
import static java.lang.annotation.ElementType.METHOD;
21+
import static java.lang.annotation.ElementType.PARAMETER;
22+
23+
import java.lang.annotation.Retention;
24+
import java.lang.annotation.RetentionPolicy;
25+
import java.lang.annotation.Target;
26+
import javax.inject.Qualifier;
27+
28+
/** Annotation for {@link SpringCve202222965Detector}. */
29+
final class Annotations {
30+
@Qualifier
31+
@Retention(RetentionPolicy.RUNTIME)
32+
@Target({PARAMETER, METHOD, FIELD})
33+
@interface DelayBetweenRequests {}
34+
35+
private Annotations() {}
36+
}

0 commit comments

Comments
 (0)