Skip to content

Commit 4059fd4

Browse files
committed
TaintedPermissionsCheck docs
1 parent f7a968d commit 4059fd4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ private class TypeShiroWildCardPermission extends RefType {
2020
}
2121
}
2222

23+
/**
24+
* An expression that constructs a permission.
25+
*/
2326
abstract class PermissionsConstruction extends Top {
27+
/** Gets the input to this permission construction. */
2428
abstract Expr getInput();
2529
}
2630

@@ -46,6 +50,9 @@ private class WildCardPermissionConstruction extends ClassInstanceExpr, Permissi
4650
override Expr getInput() { result = this.getArgument(0) }
4751
}
4852

53+
/**
54+
* A configuration for tracking flow from user input to a permissions check.
55+
*/
4956
module TaintedPermissionsCheckFlowConfig implements DataFlow::ConfigSig {
5057
predicate isSource(DataFlow::Node source) { source instanceof UserInput }
5158

@@ -54,4 +61,5 @@ module TaintedPermissionsCheckFlowConfig implements DataFlow::ConfigSig {
5461
}
5562
}
5663

64+
/** Tracks flow from user input to a permissions check. */
5765
module TaintedPermissionsCheckFlow = TaintTracking::Global<TaintedPermissionsCheckFlowConfig>;

0 commit comments

Comments
 (0)