From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tommi Virtanen Subject: Re: severe security issue on dom0/xend/xm/non-root users Date: Fri, 18 Mar 2005 13:59:57 +0200 Message-ID: <423AC2BD.10601@tv.debian.net> References: <20050313145512.GC29310@tpkurt.garloff.de> <4234B2F5.1070205@blueyonder.co.uk> <20050313215122.GC11358@tpkurt.garloff.de> <20050314145850.GB6037@vienna.egenera.com> <20050314151652.GE11417@tpkurt.garloff.de> <20050314155421.GD6037@vienna.egenera.com> <20050314161316.GM11417@tpkurt.garloff.de> <423927DB.3040305@tv.debian.net> <20050317150230.GW11685@tpkurt.garloff.de> <423A9D38.9080601@tv.debian.net> <20050318093158.GE16066@tpkurt.garloff.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <20050318093158.GE16066@tpkurt.garloff.de> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Kurt Garloff Cc: Xen development list , Philip R Auld , David Hopwood List-Id: xen-devel@lists.xenproject.org Kurt Garloff wrote: > You're very flexible in your setuid root client. > > 1. You may restrict the set of users that is able to call the client, > e.g. it might be root:trusted 4750. This would impose the same > restrictions as your group protection mechanism. With the group-protected unix domain socket, you don't need any code to do that. > 2. The first thing the client does it to acquire the privileged > port and then drop capabilities immediately afterwards. Security > flaws in the client will thus at most grant the exploiter a > privileged socket. (This has nothing to do with xen, just a > general rule for setuid root apps.) With the group-protected unix domain socket, security flaws in the client will at most grant a not-used-for-anything-else group membership, which allows one to connect to the xend socket. That is, security flaws in the client will never be able to directly give the attacker root access. Also, xend can only be attacked by people in the group, where as xend listening on 127.0.0.1 can be attacked by any local user. > 3. The client can impose whatever restrictions it likes, e.g. > checking SSL certificates, asking for passwords, checking > a configuration file, whatever. That's equally true for unix domain sockets. > I don't see a big difference in neither flexibility nor security. So you really _want_ to add yet another unnecessary setuid app, where one really is not needed? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click