mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
QLDocs
This commit is contained in:
@@ -17,7 +17,7 @@ import semmle.code.java.security.UnsafeAndroidAccess
|
|||||||
import DataFlow::PathGraph
|
import DataFlow::PathGraph
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Taint configuration tracking flow from untrusted inputs to `loadUrl` or `postUrl` calls.
|
* Taint configuration tracking flow from untrusted inputs to a resource fetching call.
|
||||||
*/
|
*/
|
||||||
class FetchUntrustedResourceConfiguration extends TaintTracking::Configuration {
|
class FetchUntrustedResourceConfiguration extends TaintTracking::Configuration {
|
||||||
FetchUntrustedResourceConfiguration() { this = "FetchUntrustedResourceConfiguration" }
|
FetchUntrustedResourceConfiguration() { this = "FetchUntrustedResourceConfiguration" }
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* Provides classes to reason about Unsafe Resource Fetching vulnerabilities in Android.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java
|
import java
|
||||||
@@ -7,6 +8,9 @@ import semmle.code.java.dataflow.DataFlow
|
|||||||
import semmle.code.java.dataflow.ExternalFlow
|
import semmle.code.java.dataflow.ExternalFlow
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* A sink that represents a method that fetches a web resource.
|
||||||
|
*
|
||||||
|
* Extend this class to add your own Unsafe Resource Fetching sinks.
|
||||||
*/
|
*/
|
||||||
abstract class UrlResourceSink extends DataFlow::Node {
|
abstract class UrlResourceSink extends DataFlow::Node {
|
||||||
/**
|
/**
|
||||||
@@ -15,9 +19,7 @@ abstract class UrlResourceSink extends DataFlow::Node {
|
|||||||
abstract string getSinkType();
|
abstract string getSinkType();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** CSV sink models representing methods susceptible to Unsafe Resource Fetching attacks. */
|
||||||
* A URL argument to a `loadUrl` or `postUrl` call, considered as a sink.
|
|
||||||
*/
|
|
||||||
private class DefaultUrlResourceSinkModel extends SinkModelCsv {
|
private class DefaultUrlResourceSinkModel extends SinkModelCsv {
|
||||||
override predicate row(string row) {
|
override predicate row(string row) {
|
||||||
row =
|
row =
|
||||||
|
|||||||
Reference in New Issue
Block a user