Sudoedit can edit arbitrary files
seclists.org
Sudoedit can edit arbitrary files
1–10 of 61 posts
Re: Sudoedit can edit arbitrary files
#2Re: Sudoedit can edit arbitrary files
#3Is there a patch, or more detailed explanation of what causes this?
Re: Sudoedit can edit arbitrary files
#4Is there a patch, or more detailed explanation of what causes this?
sudo (1.9.9-1ubuntu2.2) jammy-security; urgency=medium
* SECURITY UPDATE: arbitrary file overwrite via sudoedit
- debian/patches/CVE-2023-22809.patch: do not permit editor arguments
to include -- in plugins/sudoers/editor.c, plugins/sudoers/sudoers.c,
plugins/sudoers/visudo.c.
- CVE-2023-22809
* SECURITY UPDATE: DoS via invalid arithmetic shift in Protobuf-c
- debian/patches/CVE-2022-33070.patch: only shift unsigned values in
lib/protobuf-c/protobuf-c.c.
- CVE-2022-33070
-- Marc Deslauriers Mon, 16 Jan 2023 07:36:33 -0500
There is a detailed explanation on the sudo website: https://www.sudo.ws/security/advisories/sudoedit_any/Re: Sudoedit can edit arbitrary files
#5Re: Sudoedit can edit arbitrary files
#6I wonder if this bug in logic (instead of buffer overflows) would also have been less likely in a different language. Would it have been more obvious in a language where it's easier to work with dynamically allocated arrays and strings?
Re: Sudoedit can edit arbitrary files
#7I wonder if this bug in logic (instead of buffer overflows) would also have been less likely in a different language. Would it have been more obvious in a language where it's easier to work with dynamically allocated arrays and strings?
A system with more of an object capabilities model could have helped, though. The goal wasn't really "let the user run their editor as root (when they ask for it)", but "let the user work with this particular file from their editor (when they ask for it)".
Re: Sudoedit can edit arbitrary files
#8I wonder if this bug in logic (instead of buffer overflows) would also have been less likely in a different language. Would it have been more obvious in a language where it's easier to work with dynamically allocated arrays and strings?
Re: Sudoedit can edit arbitrary files
#9edit: I now realize I have confused sudoedit with visudo
Re: Sudoedit can edit arbitrary files
#10Why is this a problem, given that one can easily use sudoedit for privilege escalation already? edit: I now realize I have confused sudoedit with visudo