CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.14 (changelog, source)
Search

Predicate InsecureDownload::hasUnsafeExtension

Holds if str is a string that ends with an unsafe file extension.

Import path

import semmle.javascript.security.dataflow.InsecureDownloadCustomizations
predicate hasUnsafeExtension(string str)