Skip to content

🐛 verify message source on cached sentinel in inabox host#40519

Open
rootvector2 wants to merge 1 commit into
ampproject:mainfrom
rootvector2:inabox-sentinel-source-check
Open

🐛 verify message source on cached sentinel in inabox host#40519
rootvector2 wants to merge 1 commit into
ampproject:mainfrom
rootvector2:inabox-sentinel-source-check

Conversation

@rootvector2

Copy link
Copy Markdown

getFrameElement_ caches the resolved ad frame under the message sentinel and, on later messages, returns it without re-checking message.source, so a frame that reuses another inabox frame's sentinel resolves to that frame and gets its viewport/target geometry streamed back through handleSendPositions_ (and can drive its overlay). Found while auditing the source-validation path, whose own doc comment says it checks the message source, but only the cache-miss branch actually does. Bind each cached sentinel to the source window that registered it and reject reuse from a different source.

@erwinmombay erwinmombay self-assigned this Jun 9, 2026
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

Successfully merging this pull request may close these issues.

2 participants