Page 1 of 1

new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Posted: 2021-11-18, 20:03
by BZZZZ
run

Code: Select all

new(Components.utils.Sandbox(null).XPCNativeWrapper)(0)
in chrome script and pale moon will crash!
it says

Code: Select all

Segmentation fault (core dumped)
in terminal

but

Code: Select all

Components.utils.Sandbox(null).eval("new XPCNativeWrapper(0)")
doesn't crash
why?

also what XPCNativeWrapper function does and why is it only in sandbox?

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Posted: 2021-11-18, 22:43
by Moonchild
Solution: Don't run that snippet of code in Chrome context.

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Posted: 2021-11-22, 15:15
by BZZZZ
Moonchild wrote:
2021-11-18, 22:43
Solution: Don't run that snippet of code in Chrome context.
It doesn't have to be chrome context. It just has to be not sandbox context.

example (greasemonkey abuse): https://github.com/janekptacijarabaci/g ... /issues/20

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Posted: 2021-11-22, 15:37
by New Tobin Paradigm
Who the fuck actually cares?!

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Posted: 2021-11-22, 17:17
by Admin
Why are you posting here if its clearly a vulnerability in Greasmonkey?