Step 5: Using the jQuery library
So far we have looked for the function name $. Are there other ways of calling the jQuery $ function? Perhaps the CodeQL library can handle these for us?
The CodeQL standard library for JavaScript has a built-in predicate jquery() to describe references to $.
Calling the predicate jquery() returns all values that refer to the $ function, and chaining this call with getACall(), will give you all calls to this function.
Step 5: Using the jQuery library
So far we have looked for the function name
$. Are there other ways of calling the jQuery$function? Perhaps the CodeQL library can handle these for us?The CodeQL standard library for JavaScript has a built-in predicate
jquery()to describe references to$.Calling the predicate
jquery()returns all values that refer to the$function, and chaining this call withgetACall(), will give you all calls to this function.