File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/test/query-tests/security/CWE-643 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public void handle(HttpServletRequest request) throws Exception {
133
133
134
134
new DefaultXPath ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
135
135
new XPathPattern ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
136
- new XPathPattern (new PatternStub (user )); // Safe
136
+ new XPathPattern (new PatternStub (user )); // Jaxen is not modeled yet
137
137
138
138
DocumentFactory docFactory = DocumentFactory .getInstance ();
139
139
docFactory .createPattern ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
@@ -155,4 +155,4 @@ public void handle(HttpServletRequest request) throws Exception {
155
155
namespace .createPattern ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
156
156
namespace .createXPathFilter ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
157
157
}
158
- }
158
+ }
You can’t perform that action at this time.
0 commit comments