-
Notifications
You must be signed in to change notification settings - Fork 41
Use unzipper fallback with decompress #856
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
Use unzipper fallback with decompress #856
Conversation
| await decompress(path.join(filePath, fileName), filePath) | ||
| .then((files) => { | ||
| try { | ||
| await decompress(path.join(filePath, fileName), filePath); |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| await decompress(path.join(filePath, fileName), filePath) | ||
| .then((files) => { | ||
| try { | ||
| await decompress(path.join(filePath, fileName), filePath); |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| } catch (error) { | ||
| logger.debug(`Error unzipping with decompress, trying with unzipper. Stacktrace: ${error}.`); | ||
| try { | ||
| fs.createReadStream(path.join(filePath, fileName)) |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
| } catch (error) { | ||
| logger.debug(`Error unzipping with decompress, trying with unzipper. Stacktrace: ${error}.`); | ||
| try { | ||
| fs.createReadStream(path.join(filePath, fileName)) |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
|
RUN_SCA |
unzipperlibrary fallback todecompresslibrary for reducing unzipping failures