Skip to content

Commit ec4c155

Browse files
authored
*)update XQueryInjection.qhelp
1 parent a56dd60 commit ec4c155

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/ql/src/Security/CWE/CWE-652/XQueryInjection.qhelp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,19 @@ This allows an attacker to control the structure of the query.</p>
99
</overview>
1010
<recommendation>
1111

12-
<p>Use parameterized queries. This will help ensure separation between data plane and control plane.</p>
12+
<p>Use parameterized queries. This will help ensure the program retains control of the query structure.</p>
1313

1414
</recommendation>
1515
<example>
1616

17-
<p>This example is a comparison of unused parameterized query and using parameterized query.
18-
Parameterized query through <code>bindString</code>.</p>
17+
<p>The following example compares building a query by string concatenation (bad) vs. using <code>bindString</code> to parameterize the query (good).</p>
1918

2019
<sample src="XQueryInjection.java" />
2120

2221
</example>
2322
<references>
2423

25-
<li>cwe description:
24+
<li>CWE description:
2625
<a href="https://cwe.mitre.org/data/definitions/652.html">XQuery Injection</a>.</li>
2726

2827

0 commit comments

Comments
 (0)