Skip to content
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

Security - CRITICAL - Unsafe dynamic method access #471

Closed
Gaetanbrl opened this issue Dec 19, 2023 · 8 comments
Closed

Security - CRITICAL - Unsafe dynamic method access #471

Gaetanbrl opened this issue Dec 19, 2023 · 8 comments

Comments

@Gaetanbrl
Copy link

Hi,

According to CodeQL scan, z-worker return a CRITICAL issue.

See https://github.com/mviewer/mviewer/security/code-scanning/23 to get more details.

@gildas-lormeau
Copy link
Owner

The link returns a 404.

@Gaetanbrl
Copy link
Author

Yes, sry, it's private security page. GitHub return 404, i will share a screen capture.

image

@Gaetanbrl
Copy link
Author

Our project use zip.js lib, and a security scan return this alert.

@gildas-lormeau
Copy link
Owner

gildas-lormeau commented Dec 19, 2023

This line of code is related to the legacy version of zip.js. It can only be found in the previous version of the documentation, see https://github.com/gildas-lormeau/zip.js/blob/gh-pages/old-docs/demos/z-worker.js#L45. This code is not used in the current version of zip.js.

To solve this problem, you could retrieve only the master branch of zip.js in your project and ignore the branch gh-pages which is used for documentation purposes only.

Alternatively, if you're using the old version of zip.js then it has to be updated to the new version because the old version is not maintained anymore.

@Gaetanbrl
Copy link
Author

ok thanks.

I will upgrade. Do you know from wich version of zip.js this code come from ?

https://raw.githubusercontent.com/mviewer/mviewer/master/demo/addons/fileimport/lib/zip.js

@gildas-lormeau
Copy link
Owner

This is the old version of zip.js. FYI, here is the last commit of this version: https://github.com/gildas-lormeau/zip.js/tree/3e7920810f63d5057ef6028833243105521da369.

@Gaetanbrl
Copy link
Author

Ok Thanks. Weird to have too old lib (external contribution)... need real update of zip.js in my project.
I close.
Thx.

@gildas-lormeau
Copy link
Owner

You're welcome!

Kenavo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants