mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
experimentalSinkModel to sinkModel, remove one path injection sink that already exist before
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: experimentalSinkModel
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileUpload",true,"serializeToFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","DownloadFileRequest$Builder",true,"destination","(Path)","","Argument[0]","path-injection","manual"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: experimentalSinkModel
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["org.springframework.core.io","FileSystemResource",true,"FileSystemResource","(FileSystem,String)","","Argument[1]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","FileSystemResource",true,"FileSystemResource","(File)","","Argument[0]","path-injection","manual"]
|
||||
@@ -23,5 +23,4 @@ extensions:
|
||||
- ["org.springframework.util","FileSystemUtils",true,"deleteRecursively","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","ResourceUtils",true,"getFile","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileCopyUtils",true,"copyToByteArray","(File)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileCopyUtils",true,"copyToString","(Reader)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileSystemUtils",true,"copyRecursively","(File,File)","","Argument[0]","path-injection","manual"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: experimentalSinkModel
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["net.lingala.zip4j","ZipFile",true,"extractAll","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["net.lingala.zip4j","ZipFile",true,"ZipFile","(String)","","Argument[0]","path-injection","manual"]
|
||||
|
||||
@@ -43,6 +43,5 @@ public class SpringIoPathInjection {
|
||||
FileSystemUtils.deleteRecursively(filePath); // $ PathInjection
|
||||
FileCopyUtils.copy(pathFile, pathFile); // $ PathInjection
|
||||
FileCopyUtils.copyToByteArray(pathFile); // $ PathInjection
|
||||
FileCopyUtils.copyToString(new FileReader("fa"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user