Skip to content

Commit ee269fb

Browse files
committed
Added missing doc comments
1 parent fb3e56e commit ee269fb

File tree

1 file changed

+8
-0
lines changed
  • java/ql/src/semmle/code/java/security

1 file changed

+8
-0
lines changed

java/ql/src/semmle/code/java/security/XPath.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
/** Provides classes to reason about XPath vulnerabilities. */
2+
3+
import java
14
import semmle.code.java.dataflow.FlowSources
25
import semmle.code.java.dataflow.TaintTracking
36

47
/**
58
* An abstract type representing a call to interpret XPath expressions.
69
*/
710
class XPathSink extends MethodAccess {
11+
/**
12+
* Gets the argument representing the XPath expressions to be evaluated.
13+
*/
814
abstract Expr getSink();
915
}
1016

@@ -44,10 +50,12 @@ class NodeSelectNodes extends XPathSink {
4450
override Expr getSink() { result = this.getArgument(0) }
4551
}
4652

53+
/** A sink that represents a method that interprets XPath expressions. */
4754
class XPathInjectionSink extends DataFlow::ExprNode {
4855
XPathInjectionSink() { exists(XPathSink sink | this.getExpr() = sink.getSink()) }
4956
}
5057

58+
/** A configuration that tracks data from a remote input source to a XPath evaluation sink. */
5159
class XPathInjectionConfiguration extends TaintTracking::Configuration {
5260
XPathInjectionConfiguration() { this = "XPathInjection" }
5361

0 commit comments

Comments
 (0)