Live data from Hacker News

A capability-safe language would have minimized the Log4j vulnerability

justinpombrio.net

1–10 of 158 posts

Re: A capability-safe language would have minimized the Log4j vulnerability

#4
It seems more practical to use BSD’s approach of pledging once in main that the process won’t access the network. Parts of the program that need different capabilities are isolated in their own processes and communicated with using IPC. I don’t think people want to pass all kinds of capabilities around in every function call.

Re: A capability-safe language would have minimized the Log4j vulnerability

#7
Except the vulnerability was a stack up. The logger wasn't making network calls per se, but passing requests to a component (JNDI) that would obviously need network access. You'd have the same root issue, it'd just manifest more as sort of a confused deputy with a capability based model.

Re: A capability-safe language would have minimized the Log4j vulnerability

#8
post #4

It seems more practical to use BSD’s approach of pledging once in main that the process won’t access the network. Parts of the program that need different capabilities are isolated in their own processes and communicated with using IPC. I don’t think people want to pass all kinds of capabilities around in every function call.

Sounds better in general, but probably wouldn't help with something like logging which would probably be used in all the processes. Unless you want to make IPC calls for every logging call.

Re: A capability-safe language would have minimized the Log4j vulnerability

#9
post #6

Why should a programming language be limiting network access? Why wouldn't we do this via the operating system?

It might be useful that some code in a single process have access while other parts do not. How would you propose an OS handle those cases?
Post reply on HN