Skip to content

Commit b12a1c0

Browse files
committed
Java: Delete deprecated extension points referencing deleted api.
1 parent e846855 commit b12a1c0

File tree

8 files changed

+4
-91
lines changed

8 files changed

+4
-91
lines changed

java/ql/lib/semmle/code/java/frameworks/JsonIo.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import java
66
import semmle.code.java.Maps
77
import semmle.code.java.dataflow.DataFlow
8-
deprecated import semmle.code.java.dataflow.DataFlow2
9-
private import semmle.code.java.dataflow.DataFlow2
108

119
/**
1210
* The class `com.cedarsoftware.util.io.JsonReader`.

java/ql/lib/semmle/code/java/security/AndroidIntentRedirectionQuery.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import java
44
import semmle.code.java.dataflow.FlowSources
5-
deprecated import semmle.code.java.dataflow.DataFlow2
65
import semmle.code.java.dataflow.TaintTracking
7-
deprecated import semmle.code.java.dataflow.TaintTracking3
86
import semmle.code.java.security.AndroidIntentRedirection
97

108
/** A taint tracking configuration for tainted Intents being used to start Android components. */

java/ql/lib/semmle/code/java/security/CleartextStorageCookieQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java
44
import semmle.code.java.dataflow.DataFlow
5-
deprecated import semmle.code.java.dataflow.DataFlow3
65
import semmle.code.java.security.CleartextStorageQuery
76
private import semmle.code.java.dataflow.FlowSinks
87
private import semmle.code.java.dataflow.FlowSources

java/ql/lib/semmle/code/java/security/HardcodedCredentialsSourceCallQuery.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import java
66
import semmle.code.java.dataflow.DataFlow
7-
deprecated import semmle.code.java.dataflow.DataFlow2
8-
private import semmle.code.java.dataflow.DataFlow2
97
import HardcodedCredentials
108

119
/**

java/ql/lib/semmle/code/java/security/ImplicitPendingIntents.qll

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,10 @@ class NoState extends PendingIntentState, TNoState {
2626
}
2727

2828
/** A source for an implicit `PendingIntent` flow. */
29-
abstract class ImplicitPendingIntentSource extends ApiSourceNode {
30-
/**
31-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
32-
*
33-
* Holds if this source has the specified `state`.
34-
*/
35-
deprecated predicate hasState(DataFlow::FlowState state) { state = "" }
36-
}
29+
abstract class ImplicitPendingIntentSource extends ApiSourceNode { }
3730

3831
/** A sink that sends an implicit and mutable `PendingIntent` to a third party. */
39-
abstract class ImplicitPendingIntentSink extends DataFlow::Node {
40-
/**
41-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
42-
*
43-
* Holds if this sink has the specified `state`.
44-
*/
45-
deprecated predicate hasState(DataFlow::FlowState state) { state = "" }
46-
}
32+
abstract class ImplicitPendingIntentSink extends DataFlow::Node { }
4733

4834
/**
4935
* A unit class for adding additional taint steps.
@@ -62,21 +48,6 @@ class ImplicitPendingIntentAdditionalTaintStep extends Unit {
6248
* Holds if the step from `node1` to `node2` creates a mutable `PendingIntent`.
6349
*/
6450
predicate mutablePendingIntentCreation(DataFlow::Node node1, DataFlow::Node node2) { none() }
65-
66-
/**
67-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
68-
* Use `mutablePendingIntentCreation` instead.
69-
*
70-
* Holds if the step from `node1` to `node2` should be considered a taint
71-
* step for flows related to the use of implicit `PendingIntent`s. This step is only applicable
72-
* in `state1` and updates the flow state to `state2`.
73-
*/
74-
deprecated predicate step(
75-
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,
76-
DataFlow::FlowState state2
77-
) {
78-
none()
79-
}
8051
}
8152

8253
private class IntentCreationSource extends ImplicitPendingIntentSource {

java/ql/lib/semmle/code/java/security/TemplateInjection.qll

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,12 @@ private import semmle.code.java.security.Sanitizers
99
/**
1010
* A source for server-side template injection (SST) vulnerabilities.
1111
*/
12-
abstract class TemplateInjectionSource extends DataFlow::Node {
13-
/**
14-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
15-
*
16-
* Holds if this source has the specified `state`.
17-
*/
18-
deprecated predicate hasState(DataFlow::FlowState state) {
19-
state instanceof DataFlow::FlowStateEmpty
20-
}
21-
}
12+
abstract class TemplateInjectionSource extends DataFlow::Node { }
2213

2314
/**
2415
* A sink for server-side template injection (SST) vulnerabilities.
2516
*/
26-
abstract class TemplateInjectionSink extends DataFlow::Node {
27-
/**
28-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
29-
*
30-
* Holds if this sink has the specified `state`.
31-
*/
32-
deprecated predicate hasState(DataFlow::FlowState state) {
33-
state instanceof DataFlow::FlowStateEmpty
34-
}
35-
}
17+
abstract class TemplateInjectionSink extends DataFlow::Node { }
3618

3719
/**
3820
* A unit class for adding additional taint steps.
@@ -46,43 +28,13 @@ class TemplateInjectionAdditionalTaintStep extends Unit {
4628
* step for flows related to server-side template injection (SST) vulnerabilities.
4729
*/
4830
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
49-
50-
/**
51-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
52-
*
53-
* Holds if the step from `node1` to `node2` should be considered a taint
54-
* step for flows related toserver-side template injection (SST) vulnerabilities.
55-
* This step is only applicable in `state1` and updates the flow state to `state2`.
56-
*/
57-
deprecated predicate isAdditionalTaintStep(
58-
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,
59-
DataFlow::FlowState state2
60-
) {
61-
none()
62-
}
6331
}
6432

6533
/**
6634
* A sanitizer for server-side template injection (SST) vulnerabilities.
6735
*/
6836
abstract class TemplateInjectionSanitizer extends DataFlow::Node { }
6937

70-
/**
71-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
72-
*
73-
* A sanitizer for server-side template injection (SST) vulnerabilities.
74-
* This sanitizer is only applicable when `TemplateInjectionSanitizerWithState::hasState`
75-
* holds for the flow state.
76-
*/
77-
abstract deprecated class TemplateInjectionSanitizerWithState extends DataFlow::Node {
78-
/**
79-
* DEPRECATED: Open-ended flow state is not intended to be part of the extension points.
80-
*
81-
* Holds if this sanitizer has the specified `state`.
82-
*/
83-
abstract deprecated predicate hasState(DataFlow::FlowState state);
84-
}
85-
8638
private class DefaultTemplateInjectionSource extends TemplateInjectionSource instanceof ActiveThreatModelSource
8739
{ }
8840

java/ql/lib/semmle/code/java/security/UnsafeDeserializationQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import semmle.code.java.dataflow.FlowSources
66
private import semmle.code.java.dataflow.FlowSinks
7-
private import semmle.code.java.dataflow.TaintTracking2
87
private import semmle.code.java.dispatch.VirtualDispatch
98
private import semmle.code.java.frameworks.Kryo
109
private import semmle.code.java.frameworks.XStream

java/ql/lib/semmle/code/java/security/XmlParsers.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import java
44
import semmle.code.java.dataflow.DataFlow
5-
deprecated import semmle.code.java.dataflow.DataFlow3
6-
private import semmle.code.java.dataflow.DataFlow3
75
private import semmle.code.java.dataflow.RangeUtils
86

97
private module Frameworks {

0 commit comments

Comments
 (0)