News for hackers. Stuff that matters.
Re:V8 release v6.9 by shawn on Tuesday August 07, 2018 @12:19PM (#17707972)
Built-in functions currently consume 700 KB in each Isolate (an Isolate roughly corresponds to a browser tab in Chrome). This is quite wasteful, and last year we began working on reducing this overhead. In V8 v6.4, we shipped lazy deserialization, ensuring that each Isolate only pays for the built-ins that it actually needs (but each Isolate still had its own copy).

Also known as Autoload. What’s old is new again... http://www.gnu.org/software/emacs/manual/html_node/elisp/Aut...

Embedded built-ins go one step further. An embedded built-in is shared by all Isolates, and embedded into the binary itself instead of copied onto the JavaScript heap. This means that built-ins exist in memory only once regardless of how many Isolates are running, an especially useful property now that Site Isolation has been enabled by default.

Inb4 security vuln in a builtin is used to pivot across tabs or reveal state in other tabs. Like, say, a timing attack on regex exec to reveal whether the word “Facebook” appears in some other tab. </baseless>

Re:V8 release v6.9 by dividuum on Tuesday August 07, 2018 @01:37PM (#17708722)
> Inb4 security vuln in a builtin is used to pivot across tabs or reveal state in other tabs.

Although I don't know all the internals of how chrome isolates tabs, I'm not sure how that's supposed to happen. If I understand the original approach correctly, it just means that the code is in the original binary, paged in once and using copy-on-write semantics while forking individual sandbox processes only exists as a single copy instead of multiple copies that would happen if the code somehow has to be prepared by "copying to the JS heap" of each individual sandbox process.

Re:V8 release v6.9 by gsnedders on Tuesday August 07, 2018 @04:24PM (#17710386)
Yes, this is my understanding of the implementation.
Re:V8 release v6.9 by oscargrouch on Tuesday August 07, 2018 @03:20PM (#17709701)
Is this even possible?

Its just read-only machine code, theres no stack data for instance from the last executions that you can watch for.

Maybe only if you know when the code is being executed, in which register that particular builtin write the memory address of the payload, and then go for the payload on the heap to see what's there.

To know when the code will be executed you would need to watch for the VM loop and to when that particular builtin you are interested in its on the 'execution needle'.. But to get there you would first need to find a exploit, with arbitrary code execution, where you can upload your exploit payload to hook on the VM loop (and this sounds a lot of work to me).

(Not a Sec. guy myself, so genuinely curious how this could be done, but trying to figure out a way to exploit this, i kind of begin to see how it could be done)

[dead]
Re:V8 release v6.9 by dang on Tuesday August 07, 2018 @03:09PM (#17709594)
Personal attacks will get you banned here. Please post civilly and substantively, or not at all.

https://news.ycombinator.com/newsguidelines.html

Re:V8 release v6.9 by slimsag on Tuesday August 07, 2018 @12:42PM (#17708217)
I love WebAssembly and I don't agree with GP at all here, but this prevailing holier-than-thou attitude of "You shouldn't complain or poke holes in things unless you're willing to fix them yourself" is just silly, so I down-voted you.

Trying to poke holes in things, or raising concerns about them, is contributing. I would rather hear other people's arguments (even if I don't agree with them) than silence them on the grounds of "let's see you do better n00b".

Re:V8 release v6.9 by Avamander on Tuesday August 07, 2018 @12:43PM (#17708229)
Could we please drop this "if you see a problem just contribute" and switch to "if you can contribute then please do"?

I have a feeling that this is a common way in the OSS community to dismiss suggestions, ideas and criticism instead of taking them into account, feel free to correct me if this isn't the case.

EDIT: Seems I'm not the only one that's annoyed by this.

Re:V8 release v6.9 by shawn on Tuesday August 07, 2018 @12:38PM (#17708176)
They’ll have to wait in line. My time is far too valuable to give it away. I have tremendous things to accomplish.

Actually, I would be surprised if a vuln creeps its way into a builtin. Most of the runtime should be stateless, and regex exec was the only one I could think of that might do some fancy memoization. But I hear it’s fun to collect a paycheck at pwn2own.