crazy idea: what if anyone who finds an RCE was expected to scan the internet and patch all affected hosts before disclosing it?
@lanodan
you can at least patch the running program in memory, it's not like most OSes enforce W^X
Like no wx pages for even nginx on a gentoo-musl here.
screen.png
@lanodan
if you have an RCE, you can call mprotect, right?
@lanodan
still, if you can fork and exec, you can exec in the parent instead of child, and then have ptrace access to the surviving daemon
@wolf480pl @lanodan shouldn't it be possible to block that with seccomp / selinux / whatever?
@starchturrets @lanodan
Possibly, but who does that? And if they do, maybe you don't need to use the RCE to patch the RCE on their machines because they have other defences as well and your RCE is useless.
@starchturrets @lanodan
tbh. the initial idea is very bad, I wouldn't trust the people finding and announcing those big loud vulns to patch services for me...
@wolf480pl @lanodan "responsible disclosure is dead" yeah it sure is when you post bragging blog posts before distros even have any chance to build updated versions
@wolf480pl In fact got none at all on my server-only systems, on clients only one with wx pages is WebKit (probably due to lazy JIT).
command I used: grep -l wx /proc/*/maps | sed 's,/maps$,/cmdline,' | xargs sed -n l