mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
add more libraries that serve static files to js/exposure-of-private-files
This commit is contained in:
@@ -105,7 +105,10 @@ DataFlow::Node getAPrivateFolderPath(string description) {
|
||||
* Gest a call that serves the folder `path` to the public.
|
||||
*/
|
||||
DataFlow::CallNode servesAPrivateFolder(string description) {
|
||||
result = DataFlow::moduleMember("express", "static").getACall() and
|
||||
result = DataFlow::moduleMember(["express", "connect"], "static").getACall() and
|
||||
result.getArgument(0) = getAPrivateFolderPath(description)
|
||||
or
|
||||
result = DataFlow::moduleImport("serve-static").getACall() and
|
||||
result.getArgument(0) = getAPrivateFolderPath(description)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user