<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Running Tomcat on port 80</title>
	<atom:link href="http://www.mooreds.com/wordpress/archives/295/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mooreds.com/wordpress/archives/295</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 14:11:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lajos</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-3354</link>
		<dc:creator>Lajos</dc:creator>
		<pubDate>Wed, 10 Aug 2011 18:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-3354</guid>
		<description>Another way to run on port 80 without root privileges is to use authbind. This article describes how to install and configure it: http://java-notes.com/index.php/installing-tomcat-with-http-port-80-on-linux . 

I never needed the destroy method so didn&#039;t test it, but since Tomcat is not touched is any way with the authbind approach (except the 8080-&gt;80 of course), I have to assume we&#039;ll also avoid the ignored destroy-method issue...</description>
		<content:encoded><![CDATA[<p>Another way to run on port 80 without root privileges is to use authbind. This article describes how to install and configure it: <a href="http://java-notes.com/index.php/installing-tomcat-with-http-port-80-on-linux" rel="nofollow">http://java-notes.com/index.php/installing-tomcat-with-http-port-80-on-linux</a> . </p>
<p>I never needed the destroy method so didn&#8217;t test it, but since Tomcat is not touched is any way with the authbind approach (except the 8080-&gt;80 of course), I have to assume we&#8217;ll also avoid the ignored destroy-method issue&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-3121</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 17 Jun 2010 00:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-3121</guid>
		<description>I know it can be a pain, but I try to avoid running as root unless I absolutely need to. When I surf on my Windows box, it is as a locked down user account.  That way I don&#039;t have to worry about whether or not something tries to install on the back end. If I really need something installed I&#039;ll just use &quot;runas&quot;. Any time you run something as root you are taking a risk, however unlikely, that someone or some worm out there is going to pwn your box.</description>
		<content:encoded><![CDATA[<p>I know it can be a pain, but I try to avoid running as root unless I absolutely need to. When I surf on my Windows box, it is as a locked down user account.  That way I don&#8217;t have to worry about whether or not something tries to install on the back end. If I really need something installed I&#8217;ll just use &#8220;runas&#8221;. Any time you run something as root you are taking a risk, however unlikely, that someone or some worm out there is going to pwn your box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-3011</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Sat, 06 Mar 2010 05:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-3011</guid>
		<description>Hi Paul, 

One security guy wrote back:

&quot;No point in privilege escalation if I can already inject some code and get the service to run it as root. Game over man. That said I typically see tomcat run as root. Probably worth priv sep&#039;n it on high profile web facing content, but many admins don&#039;t bother.

So, I guess you could say if you control all the executable content in the tomcat tree and it is all known, trusted, and can&#039;t be changed you could relatively safely run as root/admin. That is until some new exploit in your stack comes out...&quot;</description>
		<content:encoded><![CDATA[<p>Hi Paul, </p>
<p>One security guy wrote back:</p>
<p>&#8220;No point in privilege escalation if I can already inject some code and get the service to run it as root. Game over man. That said I typically see tomcat run as root. Probably worth priv sep&#8217;n it on high profile web facing content, but many admins don&#8217;t bother.</p>
<p>So, I guess you could say if you control all the executable content in the tomcat tree and it is all known, trusted, and can&#8217;t be changed you could relatively safely run as root/admin. That is until some new exploit in your stack comes out&#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Uszak</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-3007</link>
		<dc:creator>Paul Uszak</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-3007</guid>
		<description>Thanks Dan,

I&#039;d find it very useful to get some expert feedback.  I think that this is an important issue to explore due to the seeming lack of detailled argument on the interweb.  

So many people struggle setting up tomcat with all sorts of connectors, jails, port redirects, etc.  It might just be that they don&#039;t need to...</description>
		<content:encoded><![CDATA[<p>Thanks Dan,</p>
<p>I&#8217;d find it very useful to get some expert feedback.  I think that this is an important issue to explore due to the seeming lack of detailled argument on the interweb.  </p>
<p>So many people struggle setting up tomcat with all sorts of connectors, jails, port redirects, etc.  It might just be that they don&#8217;t need to&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-3005</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Fri, 26 Feb 2010 04:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-3005</guid>
		<description>Hi Paul,

I agree that XSS vulnerabilities don&#039;t count as a reason not to run Tomcat6 as root.  I do think that directory traversal exploits are a reason not to run tomcat as root, since root can go places (and read files) on a system that the &#039;nobody&#039; user can&#039;t (if the exploit lets you out of the webroot).  

I looked through the security focus list, and I agree, I didn&#039;t see a whole lot of Tomcat exploits.  I did see at least one scary java exploit (arbitrary code execution):
http://www.securityfocus.com/bid/28125/discuss

This could affect tomcat (depending on what webapps are deployed).

I&#039;m not a security guy, but I asked some colleagues who specialize in security what they think.  I&#039;ll let you know if they respond.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>I agree that XSS vulnerabilities don&#8217;t count as a reason not to run Tomcat6 as root.  I do think that directory traversal exploits are a reason not to run tomcat as root, since root can go places (and read files) on a system that the &#8216;nobody&#8217; user can&#8217;t (if the exploit lets you out of the webroot).  </p>
<p>I looked through the security focus list, and I agree, I didn&#8217;t see a whole lot of Tomcat exploits.  I did see at least one scary java exploit (arbitrary code execution):<br />
<a href="http://www.securityfocus.com/bid/28125/discuss" rel="nofollow">http://www.securityfocus.com/bid/28125/discuss</a></p>
<p>This could affect tomcat (depending on what webapps are deployed).</p>
<p>I&#8217;m not a security guy, but I asked some colleagues who specialize in security what they think.  I&#8217;ll let you know if they respond.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Uszak</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-2999</link>
		<dc:creator>Paul Uszak</dc:creator>
		<pubDate>Sat, 20 Feb 2010 22:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-2999</guid>
		<description>Thanks Dan, I&#039;m glad that you&#039;ve given me the opportunity to get into this...

On the whole I do run as administrator on machines I&#039;m working on, especially windows boxes.  Typing sudo all the time is a pain, and in my (limited) experience, most sysadmins do too.  You can&#039;t really perform much serious administration if you&#039;re not root.

I&#039;m familiar with the Apache Tomcat 6.x vulnerabilities page, and I think that perhaps you&#039;re confusing general application vulnerabilities with those specifically relating to privilege escalation (countered by not running as root).  XSS attacks are independent of privilege level and can&#039;t attack the host server OS directly.  So are web server information disclosure attacks.  I&#039;m obviously ruling out all the vulnerabilities that relate to deploying web applications.  Clearly if you&#039;re messing with tomcat&#039;s internals then you can mess it up.  Just as installing mod_crashit into apache web server would.  That&#039;s what I meant by private web sites - one&#039;s where the public can&#039;t deploy webapps, as you might on a hosting service.  I didn&#039;t mean a site about my cat :-)

That leaves one elevated privileges item that again requires messing with tomcat&#039;s logging implementation which you can&#039;t do if you don&#039;t have other access to the server, or the ability to deploy webapps.  Let me be clear, I&#039;m not saying that tomcat is perfectly secure.  I&#039;m just saying that I can&#039;t see a specific problem running it as root.

I have to finish with, again, that I cannot find one documented external privilege escalation attack successfully mounted anywhere on the interweb...</description>
		<content:encoded><![CDATA[<p>Thanks Dan, I&#8217;m glad that you&#8217;ve given me the opportunity to get into this&#8230;</p>
<p>On the whole I do run as administrator on machines I&#8217;m working on, especially windows boxes.  Typing sudo all the time is a pain, and in my (limited) experience, most sysadmins do too.  You can&#8217;t really perform much serious administration if you&#8217;re not root.</p>
<p>I&#8217;m familiar with the Apache Tomcat 6.x vulnerabilities page, and I think that perhaps you&#8217;re confusing general application vulnerabilities with those specifically relating to privilege escalation (countered by not running as root).  XSS attacks are independent of privilege level and can&#8217;t attack the host server OS directly.  So are web server information disclosure attacks.  I&#8217;m obviously ruling out all the vulnerabilities that relate to deploying web applications.  Clearly if you&#8217;re messing with tomcat&#8217;s internals then you can mess it up.  Just as installing mod_crashit into apache web server would.  That&#8217;s what I meant by private web sites &#8211; one&#8217;s where the public can&#8217;t deploy webapps, as you might on a hosting service.  I didn&#8217;t mean a site about my cat <img src='http://www.mooreds.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>That leaves one elevated privileges item that again requires messing with tomcat&#8217;s logging implementation which you can&#8217;t do if you don&#8217;t have other access to the server, or the ability to deploy webapps.  Let me be clear, I&#8217;m not saying that tomcat is perfectly secure.  I&#8217;m just saying that I can&#8217;t see a specific problem running it as root.</p>
<p>I have to finish with, again, that I cannot find one documented external privilege escalation attack successfully mounted anywhere on the interweb&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-2998</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Sat, 20 Feb 2010 18:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-2998</guid>
		<description>Hi Paul,

I&#039;m not sure I&#039;m scaremongering.  I think I&#039;m just applying the priniciple of letting any application have the permissions that it needs and no more.  There&#039;s no real reason to run any application as root, other than ease of installation/use.  

Do you run all your commands as the root user on your web server?  If not, then you&#039;re applying a similar principle (give users the permissions they need and no more).

Here&#039;s a list of the tomcat 5 security fixes: http://tomcat.apache.org/security-5.html Not all of them are scary, but some are a bit concerning (directory traversal).

Here&#039;s the security focus vulnerablilty list: http://www.securityfocus.com/bid ; choose Apache Software Foundation as the vendor and you can see a number of vulnerabilities.  

Don&#039;t forget that tomcat runs on the JVM, which has its own vulnerabilities too.

Of course, you need to weigh the pros and cons of each approach.  If it is a personal, private website, then the chances of someone wanting to take the effort of breaking in (or finding a script that does so), then the chances are low.  (I&#039;m glad you&#039;ve encountered no security breaches in the last 4 years!)  If you&#039;re running a big site, or one that handles money, then the chances are higher, and it might be worth the extra effort.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>I&#8217;m not sure I&#8217;m scaremongering.  I think I&#8217;m just applying the priniciple of letting any application have the permissions that it needs and no more.  There&#8217;s no real reason to run any application as root, other than ease of installation/use.  </p>
<p>Do you run all your commands as the root user on your web server?  If not, then you&#8217;re applying a similar principle (give users the permissions they need and no more).</p>
<p>Here&#8217;s a list of the tomcat 5 security fixes: <a href="http://tomcat.apache.org/security-5.html" rel="nofollow">http://tomcat.apache.org/security-5.html</a> Not all of them are scary, but some are a bit concerning (directory traversal).</p>
<p>Here&#8217;s the security focus vulnerablilty list: <a href="http://www.securityfocus.com/bid" rel="nofollow">http://www.securityfocus.com/bid</a> ; choose Apache Software Foundation as the vendor and you can see a number of vulnerabilities.  </p>
<p>Don&#8217;t forget that tomcat runs on the JVM, which has its own vulnerabilities too.</p>
<p>Of course, you need to weigh the pros and cons of each approach.  If it is a personal, private website, then the chances of someone wanting to take the effort of breaking in (or finding a script that does so), then the chances are low.  (I&#8217;m glad you&#8217;ve encountered no security breaches in the last 4 years!)  If you&#8217;re running a big site, or one that handles money, then the chances are higher, and it might be worth the extra effort.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Uszak</title>
		<link>http://www.mooreds.com/wordpress/archives/295/comment-page-1#comment-2997</link>
		<dc:creator>Paul Uszak</dc:creator>
		<pubDate>Sat, 20 Feb 2010 16:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=295#comment-2997</guid>
		<description>The consensus on the interweb might be against running tomcat as root, but I have to say that I think you&#039;re /they&#039;re wrong and are just scaremongering.  People say that it&#039;s a bad idea but no one has any concrete reasons.  I can&#039;t find any examples anywhere on the interweb of tomcat being compromised from an external source.  I&#039;m not talking about dodgy JSP content run by a generic hosting provider, but a private website. And certainly not for any recent versions.
As a small example, I&#039;ve been running tomcat as root on port 80 for about 4 years without any noticeable problems...</description>
		<content:encoded><![CDATA[<p>The consensus on the interweb might be against running tomcat as root, but I have to say that I think you&#8217;re /they&#8217;re wrong and are just scaremongering.  People say that it&#8217;s a bad idea but no one has any concrete reasons.  I can&#8217;t find any examples anywhere on the interweb of tomcat being compromised from an external source.  I&#8217;m not talking about dodgy JSP content run by a generic hosting provider, but a private website. And certainly not for any recent versions.<br />
As a small example, I&#8217;ve been running tomcat as root on port 80 for about 4 years without any noticeable problems&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.mooreds.com/wordpress/archives/295/feed ) in 0.24710 seconds, on Feb 8th, 2012 at 10:21 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 11:21 pm UTC -->
