mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Update qldoc and method name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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."
|
||||
@@ -1 +1 @@
|
||||
experimental/Security/CWE/CWE-489/ServletMain.ql
|
||||
experimental/Security/CWE/CWE-489/WebComponentMain.ql
|
||||
|
||||
Reference in New Issue
Block a user