mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Apply suggestions from code review
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
c95a8e6776
commit
b039267b76
@@ -11,14 +11,14 @@ local file reads or even remote code execution.
|
||||
|
||||
<recommendation>
|
||||
<p>
|
||||
Avoid using user-controlled objects as arguments to template engine, instead construct the object explicitly with
|
||||
Avoid using user-controlled objects as arguments to a template engine. Instead, construct the object explicitly with
|
||||
the specific properties needed by the template.
|
||||
</p>
|
||||
</recommendation>
|
||||
|
||||
<example>
|
||||
<p>
|
||||
In the below example a server uses the user-controlled <code>profile</code> object to
|
||||
In the example below a server uses the user-controlled <code>profile</code> object to
|
||||
render the <code>index</code> template.
|
||||
</p>
|
||||
<sample src="examples/TemplateObjectInjection.js" />
|
||||
@@ -42,4 +42,4 @@ cwe.mitre.org: <a href="https://cwe.mitre.org/data/definitions/73.html">CWE-73:
|
||||
</li>
|
||||
|
||||
</references>
|
||||
</qhelp>
|
||||
</qhelp>
|
||||
|
||||
Reference in New Issue
Block a user