Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a274a15

Browse files
committed
move source to FlowSources.qll
1 parent 2bab9d2 commit a274a15

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.ql

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,6 @@ import semmle.code.java.dataflow.TaintTracking
1414
import semmle.code.java.dataflow.FlowSources
1515
import DataFlow::PathGraph
1616

17-
class BeanValidationSource extends RemoteFlowSource {
18-
BeanValidationSource() {
19-
exists(Method m, Parameter v |
20-
this.asParameter() = v and
21-
m.getParameter(0) = v and
22-
m
23-
.getDeclaringType()
24-
.getASourceSupertype+()
25-
.hasQualifiedName("javax.validation", "ConstraintValidator") and
26-
m.hasName("isValid") and
27-
m.fromSource()
28-
)
29-
}
30-
31-
override string getSourceType() { result = "BeanValidation source" }
32-
}
33-
3417
class BuildConstraintViolationWithTemplateMethod extends Method {
3518
BuildConstraintViolationWithTemplateMethod() {
3619
this.getDeclaringType()

0 commit comments

Comments
 (0)