News for hackers. Stuff that matters.
Re:Firefox vs. rthreads by maggit on Monday April 11, 2016 @07:32AM (#11470812)
W^X stands for "writable xor executable":

> What this means is that each page holding JIT code is either executable or writable, never both at the same time.

For anybody, like me, who didn't already know :)

Re:Firefox vs. rthreads by omginternets on Monday April 11, 2016 @09:29AM (#11471298)
Forgive my ignorance -- what does this achieve?
Re:Firefox vs. rthreads by buster on Monday April 11, 2016 @09:32AM (#11471317)
That you can't have a bug in your code that lets an attacker overwrite data (aka a buffer overflow writes into memory) AND have that part of memory executed. It's either data (which can be overwritten) or code (which can't be overwritten).
Re:Firefox vs. rthreads by exDM69 on Monday April 11, 2016 @09:53AM (#11471448)
It's not a fool proof mitigation for buffer overflow attacks, though. You can still write a bogus return address in a stack overflow and use return oriented programming (ROP) to do exploits with W^X. There are ways to work around address space layout randomization (ASLR) too.
Re:Firefox vs. rthreads by valarauca1 on Monday April 11, 2016 @10:22AM (#11471660)
No methodology in Infosec is every 100% prefect. You nest your defenses like Russian Dolls.

Each layer of protection fends off another class of attackers.

An attacker with infinite determination, money, or time will always push past your defenses.

Re:Firefox vs. rthreads by stefs on Monday April 11, 2016 @04:05PM (#11474668)
in reality, at some point it's just not cost effective anymore (for the attacker) and other targets become more promising.
Re:Firefox vs. rthreads by ben_bai on Friday April 15, 2016 @07:48AM (#11503552)
None of these mitigations is perfect. But how do you combine a exploit that has to deal with W^X, ASLR, randomized stack gap, stack cookie, randomized location of shared libraries and static programs. Seems pretty hard to me.
Re:Firefox vs. rthreads by Diederich on Monday April 11, 2016 @09:31AM (#11471312)
If an attacker is able to write arbitrary code through to memory, they won't then be able to actually execute that code.

It's a solid security enhancement.

Re:Firefox vs. rthreads by DarkLinkXXXX on Monday April 11, 2016 @10:59AM (#11471931)
Forgive my naivete, isn't that feature provided by the operating system?
Re:Firefox vs. rthreads by neerdowell on Monday April 11, 2016 @11:20AM (#11472079)
Software has to play nice and not request WX pages. If they do, the OS does as its asked.

See also, Theo de Raadt's recent comment on why OSes can't enforce W^X on userland (yet): https://marc.info/?l=openbsd-misc&m=145943630726937&w=2

Re:Firefox vs. rthreads by JonathonW on Monday April 11, 2016 @11:12AM (#11472021)
It is provided by the operating system, but you can't just naively enable it by default, especially in an application like Firefox (which has a JIT compiler for Javascript, and therefore needs to be aware of and able to manage which pages are writable and which pages are executable).