Skip to content

Commit 54e4d7c

Browse files
authored
Update 1.ql
1 parent a10fb41 commit 54e4d7c

File tree

1 file changed

+8
-1
lines changed
  • .github/codeql/queries/javascript/security

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
123
1+
// CodeQL 示例:查询具有特定特征的变量
2+
import java
3+
from MethodAccess ma, Method m
4+
where
5+
m = ma.getMethod () and
6+
m.getName().regexpMatch("equals |getResourceAsStream|getResourceAsStream|getSyste")
7+
not m.getDeclaringType() -getName() matches ("SecureUtil WhiteListedClass")
8+
select ma, "Risky method" + m. getName()

0 commit comments

Comments
 (0)