Skip to content

Commit bfab13e

Browse files
committed
fingerprint improvement, minor changes
1 parent 500548d commit bfab13e

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

community/detectors/kubeflow_exposed_ui_rce/src/main/java/com/google/tsunami/plugins/detectors/rce/Annotations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Google LLC
2+
* Copyright 2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

community/detectors/kubeflow_exposed_ui_rce/src/main/java/com/google/tsunami/plugins/detectors/rce/KubeflowRceDetector.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Google LLC
2+
* Copyright 2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -145,12 +145,12 @@ public DetectionReportList detect(
145145
}
146146

147147
private boolean isKubeflowWebService(NetworkService networkService) {
148-
String jupyterUrl = NetworkServiceUtils.buildWebApplicationRootUrl(networkService) + "jupyter/";
148+
String rootUrl = NetworkServiceUtils.buildWebApplicationRootUrl(networkService);
149149
try {
150150
Optional<String> response =
151-
httpClient.send(get(jupyterUrl).withEmptyHeaders().build(), networkService).bodyString();
151+
httpClient.send(get(rootUrl).withEmptyHeaders().build(), networkService).bodyString();
152152
return response.isPresent()
153-
&& response.get().contains("<title>Jupyter Management UI</title>");
153+
&& response.get().contains("<title>Kubeflow Central Dashboard</title>");
154154
} catch (IOException e) {
155155
logger.atWarning().withCause(e).log("Request to target %s failed", networkService);
156156
}

community/detectors/kubeflow_exposed_ui_rce/src/main/java/com/google/tsunami/plugins/detectors/rce/KubeflowRceDetectorBootstrapModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Google LLC
2+
* Copyright 2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

community/detectors/kubeflow_exposed_ui_rce/src/main/java/com/google/tsunami/plugins/detectors/rce/KubeflowRceDetectorConfigs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Google LLC
2+
* Copyright 2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

community/detectors/kubeflow_exposed_ui_rce/src/test/java/com/google/tsunami/plugins/detectors/rce/KubeflowRceDetectorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 Google LLC
2+
* Copyright 2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -61,7 +61,7 @@
6161
@RunWith(JUnit4.class)
6262
public final class KubeflowRceDetectorTest {
6363
private final FakeUtcClock fakeUtcClock =
64-
FakeUtcClock.create().setNow(Instant.parse("2024-05-23T00:00:00.00Z"));
64+
FakeUtcClock.create().setNow(Instant.parse("2025-05-23T00:00:00.00Z"));
6565
private final MockWebServer mockTargetService = new MockWebServer();
6666
private final MockWebServer mockCallbackServer = new MockWebServer();
6767
@Inject private KubeflowRceDetector detector;
@@ -148,11 +148,11 @@ private void startMockWebServer() throws IOException {
148148
new Dispatcher() {
149149
@Override
150150
public MockResponse dispatch(RecordedRequest request) {
151-
if (Objects.equals(request.getPath(), "/jupyter/")
151+
if (Objects.equals(request.getPath(), "/")
152152
&& request.getMethod().equals("GET")
153153
&& request.getBody().readString(StandardCharsets.UTF_8).isEmpty()) {
154154
return new MockResponse()
155-
.setBody("<title>Jupyter Management UI</title>")
155+
.setBody("<title>Kubeflow Central Dashboard</title>")
156156
.setResponseCode(HttpStatus.FORBIDDEN.code());
157157
}
158158
if (Objects.equals(request.getPath(), "/api/workgroup/env-info")

0 commit comments

Comments
 (0)