FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Security: Privileged API invoked via page-global `window.GM_openInTab` by tuanaiseo · Pull Request #589 · XIU2/UserScript · GitHub

Security: Privileged API invoked via page-global window.GM_openInTab - #589

Open
tuanaiseo wants to merge 1 commit into
XIU2:masterfrom
tuanaiseo:contribai/fix/security/privileged-api-invoked-via-page-global-w
Open

Security: Privileged API invoked via page-global window.GM_openInTab#589
tuanaiseo wants to merge 1 commit into
XIU2:masterfrom
tuanaiseo:contribai/fix/security/privileged-api-invoked-via-page-global-w

Conversation

Copy link
Copy Markdown

Problem

Multiple scripts call window.GM_openInTab(...) instead of the granted GM_openInTab(...). If the page defines or overrides window.GM_openInTab, the userscript may execute attacker-controlled code or lose integrity of privileged actions.

Severity: medium
File: GoogleTranslate-Beautification.user.js

Solution

Call the granted API directly (GM_openInTab) and never via window. Apply this change consistently across scripts using window.GM_openInTab.

Changes

  • GoogleTranslate-Beautification.user.js (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

Multiple scripts call `window.GM_openInTab(...)` instead of the granted `GM_openInTab(...)`. If the page defines or overrides `window.GM_openInTab`, the userscript may execute attacker-controlled code or lose integrity of privileged actions.

Affected files: GoogleTranslate-Beautification.user.js

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL