| ▲ | How Hard Is It to Open a File?(blog.sebastianwick.net) | |||||||||||||
| 51 points by ffin 2 days ago | 9 comments | ||||||||||||||
| ▲ | codethief an hour ago | parent | next [-] | |||||||||||||
> https://github.com/flatpak/flatpak/security/advisories/GHSA-... Just yesterday I was thinking about a related attack vector on AI agents: Many harnesses "sandbox" (at the application level) file reads/writes and shell commands by checking whether a given path has been whitelisted. However, I bet there are cases where the agent could simply create a symlink to somewhere else and thus trick the "sandbox" into thinking the agent is authorized? | ||||||||||||||
| ||||||||||||||
| ▲ | jshmrsn 2 hours ago | parent | prev | next [-] | |||||||||||||
Am I missing something, or do this article’s purported vulnerabilities rely on an assumption that an attacker already has enough access to your system that the attacker can modify files which your code is referencing by path? Isn’t this more of an escalation vector than a vulnerability in itself? I’m trying to understand the practical takeaway. | ||||||||||||||
| ||||||||||||||
| ▲ | dnnddidiej an hour ago | parent | prev | next [-] | |||||||||||||
Anyway to open the file with the permissions of the calling process and pass that over? | ||||||||||||||
| ▲ | TZubiri 3 hours ago | parent | prev | next [-] | |||||||||||||
Knowing what to be concerned about in security is a skill, it is possible to overengineer security and put too much effort in non risks. This reminds me of when a student was concerned about the client leaking the server's ip address. Not saying that there aren't vulns, but the fix is fixing the bug and using a standard hardening mechanism like selinux or unix users. I strongly doubt that the root issue is the good old filesystem api everyone has been using for decades, it's more likely to be your code bro | ||||||||||||||
| ▲ | croemer 3 hours ago | parent | prev [-] | |||||||||||||
Good explanation of the flatpak sandbox escape. For those allergic to LLM writing: Some sentences read very LLM-like, e.g.: > The fix wasn’t “change one function” — it was “audit the entire call chain from portal request to bubblewrap execution and replace every path string with an fd.” | ||||||||||||||