|
|
|
|
|
by friendzis
253 days ago
|
|
> if you roll up your sleeves and figure out the memory layout and offsets, you can do whatever. So we are talking about public/private access specifiers in source code, which only matter in cooperative setting. But that's IMO highly naive view as compute, especially OS, is objectively an adversarial environment. Some actors, at some point WILL figure out the memory layout and use that in an attack. There have been literally decades of whack-a-mole against bad actors. I maintain my stance that any fields/members/methods loaded into a userspace program should not be capable of breaking the system. |
|
I'd point fingers towards the electron core devs for this one, and not devs building apps on top of electron (since they likely didn't know that's how electron was doing it).
There are cases where OS companies noticed the use of private APIs and made cleaner public ones (the most obvious was the file system syncing stuff used by Dropbox and others, which used to use private APIs until Apple provided a public one).