JS: address some comments

This commit is contained in:
Asger F
2018-11-20 18:11:46 +00:00
parent 8aff66616b
commit 1c06f45046
3 changed files with 7 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ in its <code>constructor</code> property.
<recommendation>
<p>
Avoid invoking user-controlled methods on the global object or on any function object.
Whitelist the permitted method names or change the type of object the methods are stored on.
</p>
</recommendation>

View File

@@ -1,8 +1,8 @@
/**
* @name Method name injection
* @description Invoking user-controlled methods on a arbitrary objects can lead to remote code execution.
* @description Invoking user-controlled methods on arbitrary objects can lead to remote code execution.
* @kind path-problem
* @problem.severity warning
* @problem.severity error
* @precision high
* @id js/method-name-injection
* @tags security