| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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>
| Back | FazBrowse Home | New Git URL |
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
Testing