Skip to content

Commit 71e7083

Browse files
committed
add "linkname" as a file-name-property for zip-slip
1 parent a19718a commit 71e7083

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/ZipSlipCustomizations.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ module ZipSlip {
4747
)
4848
}
4949

50-
/** Gets a property that is used to get the filename part of an archive entry. */
50+
/** Gets a property that is used to get a filename part of an archive entry. */
5151
private string getAFilenameProperty() {
5252
result = "path" // Used by library 'unzip'.
5353
or
5454
result = "name" // Used by library 'tar-stream'.
55+
or
56+
result = "linkname" // linked file name, used by 'tar-stream'.
5557
}
5658

5759
/** An archive entry path access, as a source for unsafe archive extraction. */

0 commit comments

Comments
 (0)