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
Using installPostMessageImplementation() will use global.postMessage to send messages. If, let's say you maintain a browser extension that has access to window and executes this code, you will send a message that a web page could be listening to. If the web page has code that is listening for messages, but does not clean the message before processing (JSON.parse(message)), you could break a site unintentionally.
I know as professionals we should clean input before processing or try/catch, etc, but big sites such as icloud.com fall victim to this issue.
After navigating to the notes section after logging in to icloud.com the page will error if you execute a setImmediate() call sometime during loading.
The text was updated successfully, but these errors were encountered:
As the readme mentions, window. postMessage seems like its the best hack available until something native comes along. I wrote this issue without understanding the need for window.postMessage for this lib and understanding that there is no better alternative. Thanks for reading it though!
Hello,
Using
installPostMessageImplementation()
will use global.postMessage to send messages. If, let's say you maintain a browser extension that has access towindow
and executes this code, you will send a message that a web page could be listening to. If the web page has code that is listening for messages, but does not clean the message before processing (JSON.parse(message)
), you could break a site unintentionally.I know as professionals we should clean input before processing or try/catch, etc, but big sites such as
icloud.com
fall victim to this issue.After navigating to the notes section after logging in to
icloud.com
the page will error if you execute asetImmediate()
call sometime during loading.The text was updated successfully, but these errors were encountered: