File tree Expand file tree Collapse file tree
java/ql/test/query-tests/security/CWE-643 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public void handle(HttpServletRequest request) throws Exception {
133133
134134 new DefaultXPath ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
135135 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
137137
138138 DocumentFactory docFactory = DocumentFactory .getInstance ();
139139 docFactory .createPattern ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
@@ -155,4 +155,4 @@ public void handle(HttpServletRequest request) throws Exception {
155155 namespace .createPattern ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
156156 namespace .createXPathFilter ("/users/user[@name='" + user + "' and @pass='" + pass + "']" ); // $hasXPathInjection
157157 }
158- }
158+ }
You can’t perform that action at this time.
0 commit comments