File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
semmle/code/java/security Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import semmle.code.java.security.UnsafeAndroidAccess
17
17
import DataFlow:: PathGraph
18
18
19
19
/**
20
- * Taint configuration tracking flow from untrusted inputs to `loadUrl` or `postUrl` calls .
20
+ * Taint configuration tracking flow from untrusted inputs to a resource fetching call .
21
21
*/
22
22
class FetchUntrustedResourceConfiguration extends TaintTracking:: Configuration {
23
23
FetchUntrustedResourceConfiguration ( ) { this = "FetchUntrustedResourceConfiguration" }
Original file line number Diff line number Diff line change 1
1
/**
2
+ * Provides classes to reason about Unsafe Resource Fetching vulnerabilities in Android.
2
3
*/
3
4
4
5
import java
@@ -7,6 +8,9 @@ import semmle.code.java.dataflow.DataFlow
7
8
import semmle.code.java.dataflow.ExternalFlow
8
9
9
10
/**
11
+ * A sink that represents a method that fetches a web resource.
12
+ *
13
+ * Extend this class to add your own Unsafe Resource Fetching sinks.
10
14
*/
11
15
abstract class UrlResourceSink extends DataFlow:: Node {
12
16
/**
@@ -15,9 +19,7 @@ abstract class UrlResourceSink extends DataFlow::Node {
15
19
abstract string getSinkType ( ) ;
16
20
}
17
21
18
- /**
19
- * A URL argument to a `loadUrl` or `postUrl` call, considered as a sink.
20
- */
22
+ /** CSV sink models representing methods susceptible to Unsafe Resource Fetching attacks. */
21
23
private class DefaultUrlResourceSinkModel extends SinkModelCsv {
22
24
override predicate row ( string row ) {
23
25
row =
You can’t perform that action at this time.
0 commit comments