Linux Internals: How /proc/self/mem writes to unwritable memory
10 points by git-bruh
10 points by git-bruh
how is this not a security issue? Can I use this to write to libc?
I think there were a bunch of security holes because of /proc/mem being available and insufficiently secured a decade or so ago. I have a vague memory of it happening to Samsung Android phones and Ubuntu, but both of them have had a ton of vulnerabilities over time so it's not easy to search for with just my recollections.
Just encountered a bug where this would actually useful to implement a workaround. But to be fair only because this is a cursed project interacting with already-cursed fork()-without-exec(). In practice, trying for some other still-cursed-but-less-so fix.