Untrusted sinks are functions or object where data can be executed.
Possible sinks: variables, parameters given to a particular function, instructions of particular type (e.g., jump instructions)
Code Execution Sinks |
JavaScript and DOM have several APIs that accept string values and evaluate them as JavaScript code. The interpreted code will run in the same context as these sinks. If outsiders can control the values fed to these APIs, it will lead to the most straightforward cross-site scripting exploits. Typical sinks of this kind include eval and the innerHTML property of
\ |