Javascript Cheatsheets
[BASIC]
[JAVASCRIPT]
Finds classes that do not declare an explicit constructor
[BASIC]
[JAVASCRIPT]
Finds property accesses using the square bracket notation where the property name is a constant string
[EXPERT]
[JAVASCRIPT]
Tracks the return value of an HTML sanitizer into an escape-sequence decoder, indicating an ineffective sanitization attempt.
[EXPERT]
[JAVASCRIPT]
Tracks the return value of 'escapeHtml' into 'decodeURI', indicating an ineffective sanitization attempt.
[BASIC]
[JAVASCRIPT]
Finds 'default' exports that export a function
[BASIC]
[JAVASCRIPT]
Finds `==` equality expressions that form an expression statement
[EXPERT]
[JAVASCRIPT]
Extends the standard Stored XSS query with an additional source, using TrackedNode to track MySQL connections globally.
[EXPERT]
[JAVASCRIPT]
Extends the standard Stored XSS query with an additional source.
[BASIC]
[JAVASCRIPT]
Generates use-definition pairs that provide the data for find-references in the code viewer.
[BASIC]
[JAVASCRIPT]
Finds functions that do not contain a return statement
[EXPERT]
[JAVASCRIPT]
Finds cases where the 'userId' field in a request to another service is an arbitrary user-controlled value, indicating lack of authentication.
[BASIC]
[JAVASCRIPT]
Finds 'if' statements where the 'then' branch is an empty block statement
[BASIC]
[JAVASCRIPT]
Finds calls of the form `(function(...) { ... })(...)`
[EXPERT]
[JAVASCRIPT]
Tracks values from an 'authKey' property into a postMessage call with unrestricted origin, indicating a leak of sensitive information.
[BASIC]
[JAVASCRIPT]
Generates use-definition pairs that provide the data for jump-to-definition in the code viewer.
[BASIC]
[JAVASCRIPT]
Outputs a representation of a file's Abstract Syntax Tree. This query is used by the VS Code extension.
[BASIC]
[JAVASCRIPT]
Finds places where we reference a variable called `var`
[EXPERT]
[JAVASCRIPT]
Tracks user-controlled values into 'eval' calls (special case of js/code-injection), and generates a visualizable path from the source to the sink.
[ADVANCED]
[JAVASCRIPT]
Tracks user-controlled values into 'eval' calls (special case of js/code-injection).
[EXPERT]
[JAVASCRIPT]
Tracks user-controlled values to an unescaped lodash template placeholder.