Module DynamicCreation
Looks for dyanmic creation of an element and source.
Import path
import semmle.javascript.security.FunctionalityFromUntrustedSource
Predicates
getAttributeAssignmentRhs | Get the right-hand side of an assignment to a named attribute. |
isAssignedToSrcAttribute | Holds if |
isCreateElementNode | Holds if |
isCreateScriptNodeWoIntegrityCheck | Holds if |
urlTrackedFromUnsafeSourceLiteral | Holds a dataflow node is traked from an untrusted source. |
urlTrackedFromUnsafeSourceLiteral | Holds if |
Classes
IframeOrScriptSrcAssignment | A script or iframe element that refers to untrusted content. |