-
Notifications
You must be signed in to change notification settings - Fork 14
Replace archiver library #3729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Replace archiver library #3729
Conversation
return File{}, fmt.Errorf("archive not opened") | ||
} | ||
|
||
header, err := tgz.reader.Next() |
Check failure
Code scanning / CodeQL
Arbitrary file access during archive extraction ("Zip Slip") High
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
2f298ec
to
4c9b50e
Compare
4c9b50e
to
562cdc5
Compare
func (f File) getHeaderName() (string, error) { | ||
var rawName string | ||
if header, ok := f.Header.(*tar.Header); ok { | ||
rawName = header.Name |
Check failure
Code scanning / CodeQL
Arbitrary file write extracting an archive containing symbolic links High
symlink creation
if header, ok := f.Header.(*tar.Header); ok { | ||
rawName = header.Name | ||
} else if header, ok := f.Header.(zip.FileHeader); ok { | ||
rawName = header.Name |
Check failure
Code scanning / CodeQL
Arbitrary file write extracting an archive containing symbolic links High
symlink creation
} | ||
|
||
// Access file object - path validation happens immediately after | ||
file := z.reader.File[z.currentFile] |
Check failure
Code scanning / CodeQL
Arbitrary file access during archive extraction ("Zip Slip") High
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Unsanitized archive entry, which may contain '..', is used in a
No description provided.