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

Fortify scan finds HTML5: Overly Permissive Message Posting Policy in jszip.js line 11477 and 11504 #901

Open
dianesun opened this issue Jun 30, 2023 · 1 comment

Comments

@dianesun
Copy link

Fortify Priority: Low Folder Low
Kingdom: Encapsulation
Abstract: On line 11477 of jszip.js the program posts a cross-document message with an overly
permissive target origin..
Sink: jszip.js:11477 FunctionPointerCall: postMessage()
11475 postMessageIsAsynchronous = false;
11476 };
11477 global.postMessage("", "*");
11478 global.onmessage = oldOnMessage;
11479 return postMessageIsAsynchronous;

Abstract: On line 11504 of jszip.js the program posts a cross-document message with an overly
permissive target origin..
Sink: jszip.js:11504 FunctionPointerCall: postMessage()
11502
11503 registerImmediate = function (handle) {
11504 global.postMessage(messagePrefix + handle, "*");
11505 };
11506 }

@Fotiman
Copy link

Fotiman commented Sep 13, 2023

This raises the question: why would this package be messaging with the parent window?

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