You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because PostMessage() is passing "*" as the second parameter.
As far as I can tell, that PostMessage turns into parentPort.postMessage() for which the
second parameter would be objects to transfer, so "*" would not apply.
This seems to be a harmless error that could be easily removed, so as to not trigger
AppScan or other scanning tools.
Here is the finding from AppScan:
Reasoning: AppScan found a postMessage() function that uses the wildcard * for the target domain[s] parameter
I think in this case the use of * for the targetOrigin is OK because we are posting a message to ourselves. I'm not totally sure its needed.. but I do see it used in https://github.com/YuzuJS/setImmediate/blob/master/setImmediate.js so I imagine that for some reason it is. @juj do you know more about this?
My guess is that this is likely a false positive security alert.
This scanning tool:
https://www.hcl-software.com/appscan/products/appscan-standard
flags an error on this line:
https://github.com/emscripten-core/emscripten/blob/main/src/library_eventloop.js#L368
because PostMessage() is passing "*" as the second parameter.
As far as I can tell, that PostMessage turns into parentPort.postMessage() for which the
second parameter would be objects to transfer, so "*" would not apply.
This seems to be a harmless error that could be easily removed, so as to not trigger
AppScan or other scanning tools.
Here is the finding from AppScan:
Reasoning: AppScan found a postMessage() function that uses the wildcard * for the target domain[s] parameter
There's another instance here:
https://github.com/emscripten-core/emscripten/blob/main/src/library_eventloop.js#L76
that didn't trigger the scan, but could.
The text was updated successfully, but these errors were encountered: