Update qldoc and method name

This commit is contained in:
luchua-bc
2021-02-22 14:15:41 +00:00
parent dc799019d0
commit 40df01d2cd
3 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
/**
* @name Main Method in Enterprise Java Bean
* @description Jave EE applications with a main method.
* @description Java EE applications with a main method.
* @kind problem
* @id java/main-method-in-enterprise-bean
* @tags security

View File

@@ -1,6 +1,6 @@
/**
* @name Main Method in Java EE Web Components
* @description Jave EE web applications with a main method.
* @description Java EE web applications with a main method.
* @kind problem
* @id java/main-method-in-web-components
* @tags security
@@ -27,9 +27,9 @@ class ServletListenerClass extends Class {
}
}
/** The `main` method in `Servlet`. */
class ServletMainMethod extends Method {
ServletMainMethod() {
/** The `main` method in `Servlet` and `Action` of the Spring and Struts framework. */
class WebComponentMainMethod extends Method {
WebComponentMainMethod() {
(
this.getDeclaringType() instanceof ServletClass or
this.getDeclaringType() instanceof ServletFilterClass or
@@ -59,5 +59,5 @@ class ServletMainMethod extends Method {
}
}
from ServletMainMethod sm
from WebComponentMainMethod sm
select sm, "Web application has a main method."

View File

@@ -1 +1 @@
experimental/Security/CWE/CWE-489/ServletMain.ql
experimental/Security/CWE/CWE-489/WebComponentMain.ql