File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
python/ql/src/meta/alerts Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name Request Handlers
3
+ * @description HTTP Server Request Handlers
4
+ * @kind problem
5
+ * @problem.severity recommendation
6
+ * @id py/meta/alerts/request-handlers
7
+ * @tags meta
8
+ * @precision very-low
9
+ */
10
+
11
+ private import python
12
+ private import semmle.python.dataflow.new.DataFlow
13
+ private import semmle.python.Concepts
14
+ private import meta.MetaMetrics
15
+
16
+ from HTTP:: Server:: RequestHandler requestHandler , string title
17
+ where
18
+ not requestHandler .getLocation ( ) .getFile ( ) instanceof IgnoredFile and
19
+ if requestHandler .isMethod ( )
20
+ then
21
+ title = "Method " + requestHandler .getScope ( ) .( Class ) .getName ( ) + "." + requestHandler .getName ( )
22
+ else title = requestHandler .toString ( )
23
+ select requestHandler , "RequestHandler: " + title
You can’t perform that action at this time.
0 commit comments