From: Nivedita Singhvi <niv@us.ibm.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Xend listening for TCP HTTP?
Date: Thu, 15 Dec 2005 15:43:20 -0800 [thread overview]
Message-ID: <43A1FF98.7010803@us.ibm.com> (raw)
In-Reply-To: <43A1EB22.3050001@us.ibm.com>
Anthony Liguori wrote:
> Ok, I confirmed this, out of the box, accessing
> http://localhost:8000/xen/domain as a lesser-privileged user allows one
> to do very bad things.
Anthony, were you using the default xend-config.sxp?
Currently, although the default is off for http support
in xend, the default config file turns it on:
#(xend-http-server no)
(xend-http-server yes)
Note that it is restricted to local users, though:
# Address xend should listen on for HTTP connections, if xend-http-server is
# set.
# Specifying 'localhost' prevents remote connections.
# Specifying the empty string '' (the default) allows all connections.
#(xend-address '')
(xend-address localhost)
I'm about to submit a patch to turn this off in the default
file that's installed, as it's generally the case that most
people won't change it...
thanks,
Nivedita
> Regards,
>
> Anthony Liguori
>
> Anthony Liguori wrote:
>
>> Hi,
>>
>> On IRC, it came up that recent snapshots of Xend are now listening for
>> TCP HTTP connections again by default. Since it's still listening on
>> a Unix socket and xm will always prefer that, xm still only functions
>> as root.
>>
>> However, less privileged users can still connect to the TCP port and
>> through Xend gain root access. This seems like a pretty bad default
>> configuration. I poked around on the TCP interface but couldn't seem
>> to confirm this (does it only accept s-expression Content-Type now?).
>>
>> Thanks for any clarification on this.
>>
>> Regards,
>>
>> Anthony Liguori
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
next prev parent reply other threads:[~2005-12-15 23:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 22:12 Xend listening for TCP HTTP? Anthony Liguori
2005-12-15 22:16 ` Anthony Liguori
2005-12-15 23:43 ` Nivedita Singhvi [this message]
2005-12-15 23:48 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43A1FF98.7010803@us.ibm.com \
--to=niv@us.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.