File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/experimental/Security/CWE/CWE-489
test/experimental/query-tests/security/CWE-489 Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11/**
22 * @name Main Method in Enterprise Java Bean
3- * @description Jave EE applications with a main method.
3+ * @description Java EE applications with a main method.
44 * @kind problem
55 * @id java/main-method-in-enterprise-bean
66 * @tags security
Original file line number Diff line number Diff line change 11/**
22 * @name Main Method in Java EE Web Components
3- * @description Jave EE web applications with a main method.
3+ * @description Java EE web applications with a main method.
44 * @kind problem
55 * @id java/main-method-in-web-components
66 * @tags security
@@ -27,9 +27,9 @@ class ServletListenerClass extends Class {
2727 }
2828}
2929
30- /** The `main` method in `Servlet`. */
31- class ServletMainMethod extends Method {
32- ServletMainMethod ( ) {
30+ /** The `main` method in `Servlet` and `Action` of the Spring and Struts framework . */
31+ class WebComponentMainMethod extends Method {
32+ WebComponentMainMethod ( ) {
3333 (
3434 this .getDeclaringType ( ) instanceof ServletClass or
3535 this .getDeclaringType ( ) instanceof ServletFilterClass or
@@ -59,5 +59,5 @@ class ServletMainMethod extends Method {
5959 }
6060}
6161
62- from ServletMainMethod sm
62+ from WebComponentMainMethod sm
6363select sm , "Web application has a main method."
Original file line number Diff line number Diff line change 1- experimental/Security/CWE/CWE-489/ServletMain .ql
1+ experimental/Security/CWE/CWE-489/WebComponentMain .ql
You can’t perform that action at this time.
0 commit comments