<?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: Pwning Ubuntu via CUPS</title>
	<atom:link href="http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/</link>
	<description>Information Security Think Tank</description>
	<pubDate>Tue, 06 Jan 2009 09:52:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124426</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Sat, 22 Nov 2008 18:46:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124426</guid>
		<description>@georgeperez: the fact that RSS subscriptions can be added/deleted without auth had been reported before I think, but the fact that the daemon crashes when more than 100 subscriptions are added is a *different* issue.

As I said dude, if you are on Ubuntu 8.04 LTS _fully patched_, the cups daemon crashes when visiting the PoC webpage without needing to be authenticated on the CUPS interface. Granted it's just a NULL pointer dereference crash, so no code exec is possible. But still, a daemon that runs as root shouldn't just crash because you visited a webpage IMHO.</description>
		<content:encoded><![CDATA[<p>@georgeperez: the fact that RSS subscriptions can be added/deleted without auth had been reported before I think, but the fact that the daemon crashes when more than 100 subscriptions are added is a *different* issue.</p>
<p>As I said dude, if you are on Ubuntu 8.04 LTS _fully patched_, the cups daemon crashes when visiting the PoC webpage without needing to be authenticated on the CUPS interface. Granted it&#8217;s just a NULL pointer dereference crash, so no code exec is possible. But still, a daemon that runs as root shouldn&#8217;t just crash because you visited a webpage IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: georgeperez</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124424</link>
		<dc:creator>georgeperez</dc:creator>
		<pubDate>Sat, 22 Nov 2008 17:00:42 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124424</guid>
		<description>It is certainly FUD beacause it wasnt never an 0Day, vuln was patched on last version of CUPS,or am I wrong ?</description>
		<content:encoded><![CDATA[<p>It is certainly FUD beacause it wasnt never an 0Day, vuln was patched on last version of CUPS,or am I wrong ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124419</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Fri, 21 Nov 2008 21:41:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124419</guid>
		<description>@CO: simply, you are a restricted user by default on Ubuntu. just like on mac osx and vista. if you are on the command line and need to perform an action with root privileges, then you launch a 'sudo' command which will ask you for your password. if the privileged action is performed via a GUI, then you'll also have to reauthenticate, similar to vista's UAC.

@redb0ne:yeah, noticed that vuln when it came out. requires printer sharing though, which i believe is disabled by default? btw, have u worked on a PoC for this bug? seems idefense was able to exploit it reliably.

btw, it appears that the crash included in this post has been categorized as two issues:

1) cupds crash due to NULL pointer dereference when more than 100 RSS subscriptions are added

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5183

2) RSS subscriptions can be modified without auth and forged (CSRF) remotely via a specially-crafted page

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5184</description>
		<content:encoded><![CDATA[<p>@CO: simply, you are a restricted user by default on Ubuntu. just like on mac osx and vista. if you are on the command line and need to perform an action with root privileges, then you launch a &#8217;sudo&#8217; command which will ask you for your password. if the privileged action is performed via a GUI, then you&#8217;ll also have to reauthenticate, similar to vista&#8217;s UAC.</p>
<p>@redb0ne:yeah, noticed that vuln when it came out. requires printer sharing though, which i believe is disabled by default? btw, have u worked on a PoC for this bug? seems idefense was able to exploit it reliably.</p>
<p>btw, it appears that the crash included in this post has been categorized as two issues:</p>
<p>1) cupds crash due to NULL pointer dereference when more than 100 RSS subscriptions are added</p>
<p><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5183" rel="nofollow">http://cve.mitre.org/cgi-bin/c.....-2008-5183</a></p>
<p>2) RSS subscriptions can be modified without auth and forged (CSRF) remotely via a specially-crafted page</p>
<p><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5184" rel="nofollow">http://cve.mitre.org/cgi-bin/c.....-2008-5184</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: redb0ne</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124400</link>
		<dc:creator>redb0ne</dc:creator>
		<pubDate>Thu, 20 Nov 2008 13:14:16 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124400</guid>
		<description>If you are interested in code execution vulns via this attack vector then look at CVE-2008-0047, IIRC it is in the CGI interface as well and can be exploited via a similar means.</description>
		<content:encoded><![CDATA[<p>If you are interested in code execution vulns via this attack vector then look at CVE-2008-0047, IIRC it is in the CGI interface as well and can be exploited via a similar means.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CO</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124399</link>
		<dc:creator>CO</dc:creator>
		<pubDate>Thu, 20 Nov 2008 10:50:49 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124399</guid>
		<description>Could you elaborate on this highlight feature called "sudo"? You mean, I don't have to run my browser and mail client as root anymore?</description>
		<content:encoded><![CDATA[<p>Could you elaborate on this highlight feature called &#8220;sudo&#8221;? You mean, I don&#8217;t have to run my browser and mail client as root anymore?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124398</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Thu, 20 Nov 2008 08:20:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124398</guid>
		<description>oops, typo!: "malicoius" -&#62; "malicious"

:P</description>
		<content:encoded><![CDATA[<p>oops, typo!: &#8220;malicoius&#8221; -&gt; &#8220;malicious&#8221;</p>
<p>:P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124397</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Thu, 20 Nov 2008 08:19:37 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124397</guid>
		<description>@Kees and @redb0ne: as I said, all I knew for sure is that a crash can be caused reliably. I was hoping someone could maybe do something more interesting than crashing the CUPS daemon. it seems redb0ne figured out it's just a null pointer dereference.

I still think it's interesting how someone could potentially attack the CUPS daemon remotely via malicoius webpages, as a way to bypass the restriction of the daemon only listening to localhost.

@Martin: Bug #298241

@Jason: good idea to do it via JS rather than bash. your JS code broke though, due to the anti XSS filter

@TH: thanks for figuring out why authentication is required on intrepid but not hardy!</description>
		<content:encoded><![CDATA[<p>@Kees and @redb0ne: as I said, all I knew for sure is that a crash can be caused reliably. I was hoping someone could maybe do something more interesting than crashing the CUPS daemon. it seems redb0ne figured out it&#8217;s just a null pointer dereference.</p>
<p>I still think it&#8217;s interesting how someone could potentially attack the CUPS daemon remotely via malicoius webpages, as a way to bypass the restriction of the daemon only listening to localhost.</p>
<p>@Martin: Bug #298241</p>
<p>@Jason: good idea to do it via JS rather than bash. your JS code broke though, due to the anti XSS filter</p>
<p>@TH: thanks for figuring out why authentication is required on intrepid but not hardy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124392</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Thu, 20 Nov 2008 01:40:42 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124392</guid>
		<description>nobody is spreading fud! May I use the opportunity to remind everybody that it is our decision what to publish on this blog. if you don't like it than move on and unsubscribe. it is as simple as that.

thanks for the feedback btw.</description>
		<content:encoded><![CDATA[<p>nobody is spreading fud! May I use the opportunity to remind everybody that it is our decision what to publish on this blog. if you don&#8217;t like it than move on and unsubscribe. it is as simple as that.</p>
<p>thanks for the feedback btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: redb0ne</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124388</link>
		<dc:creator>redb0ne</dc:creator>
		<pubDate>Wed, 19 Nov 2008 23:57:56 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124388</guid>
		<description>This is a NULL pointer dereference from an unchecked pointer, about 5-10 minutes of debugging could have revealed that. Please stop spreading FUD, crashing CUPS is hardly 'pwning' anything.</description>
		<content:encoded><![CDATA[<p>This is a NULL pointer dereference from an unchecked pointer, about 5-10 minutes of debugging could have revealed that. Please stop spreading FUD, crashing CUPS is hardly &#8216;pwning&#8217; anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djTeller</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124383</link>
		<dc:creator>djTeller</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:22:33 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124383</guid>
		<description>Tested on Ubuntu 8.10 authentication is required.
Crashed as expected.

I'm looking at cupsd.conf on some other installation to figure out the changes.</description>
		<content:encoded><![CDATA[<p>Tested on Ubuntu 8.10 authentication is required.<br />
Crashed as expected.</p>
<p>I&#8217;m looking at cupsd.conf on some other installation to figure out the changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Pitt</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124381</link>
		<dc:creator>Martin Pitt</dc:creator>
		<pubDate>Wed, 19 Nov 2008 12:07:17 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124381</guid>
		<description>Any chance you could tell me the Launchpad bug number for this? I am unable to find it. Thanks!</description>
		<content:encoded><![CDATA[<p>Any chance you could tell me the Launchpad bug number for this? I am unable to find it. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124380</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 19 Nov 2008 11:41:24 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124380</guid>
		<description>I have a confirmation that on 8.10 it asks for authentication. Still, this is a poor excuse for defense, it should cap the RSS feeds so that it does not crash even if the user did enter authentication. Also, I wonder why it needs to run as root.

Codename:	intrepid

P.S. ps -U root -u root u &#124; wc-l 
returns 59 for me</description>
		<content:encoded><![CDATA[<p>I have a confirmation that on 8.10 it asks for authentication. Still, this is a poor excuse for defense, it should cap the RSS feeds so that it does not crash even if the user did enter authentication. Also, I wonder why it needs to run as root.</p>
<p>Codename:	intrepid</p>
<p>P.S. ps -U root -u root u | wc-l<br />
returns 59 for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TH</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124379</link>
		<dc:creator>TH</dc:creator>
		<pubDate>Wed, 19 Nov 2008 10:28:13 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124379</guid>
		<description>Problem solved:

Hardy's version: 1.3.7-1ubuntu3.1
Intrepid's version: 1.3.9-2
http://packages.ubuntu.com/intrepid/cups
http://packages.ubuntu.com/hardy/cupsys

From cups-1.3.8 CHANGES.txt:
- The scheduler now ensures that the RSS directory has the correct permissions.</description>
		<content:encoded><![CDATA[<p>Problem solved:</p>
<p>Hardy&#8217;s version: 1.3.7-1ubuntu3.1<br />
Intrepid&#8217;s version: 1.3.9-2<br />
<a href="http://packages.ubuntu.com/intrepid/cups" rel="nofollow">http://packages.ubuntu.com/intrepid/cups</a><br />
<a href="http://packages.ubuntu.com/hardy/cupsys" rel="nofollow">http://packages.ubuntu.com/hardy/cupsys</a></p>
<p>From cups-1.3.8 CHANGES.txt:<br />
- The scheduler now ensures that the RSS directory has the correct permissions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#60;malicious&#62;&#60;/markup&#62;</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124378</link>
		<dc:creator>&#60;malicious&#62;&#60;/markup&#62;</dc:creator>
		<pubDate>Wed, 19 Nov 2008 10:06:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124378</guid>
		<description>Nice article! And yes - the CUPS web front end carries a plethora of vulnerabilities. The 'print test page' CSRF alone is classic... Loop this request and block a printer for a very long time wasting paper and ink...</description>
		<content:encoded><![CDATA[<p>Nice article! And yes - the CUPS web front end carries a plethora of vulnerabilities. The &#8216;print test page&#8217; CSRF alone is classic&#8230; Loop this request and block a printer for a very long time wasting paper and ink&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TH</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124377</link>
		<dc:creator>TH</dc:creator>
		<pubDate>Wed, 19 Nov 2008 10:01:44 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124377</guid>
		<description>Previously I only tried to open "add subscription" URL in browser, and it asked me for credentials. But now I actually tested PoC and it totally blocked my Ubuntu! Opening 101 popup windows asking for credentials isn't very healthy for the system, especially if you forgot to mount swap partition ;-) If I didn't kill firefox soon enough only the reset button helped.

So now you have PoC:
- Ubuntu 8.04 - cups crash
- Ubuntu 8.10 - possible denial of service

Great job :-)</description>
		<content:encoded><![CDATA[<p>Previously I only tried to open &#8220;add subscription&#8221; URL in browser, and it asked me for credentials. But now I actually tested PoC and it totally blocked my Ubuntu! Opening 101 popup windows asking for credentials isn&#8217;t very healthy for the system, especially if you forgot to mount swap partition ;-) If I didn&#8217;t kill firefox soon enough only the reset button helped.</p>
<p>So now you have PoC:<br />
- Ubuntu 8.04 - cups crash<br />
- Ubuntu 8.10 - possible denial of service</p>
<p>Great job :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124375</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Wed, 19 Nov 2008 08:15:01 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124375</guid>
		<description>OK, I did further investigation on why some people need authentication to add RSS feeds and others dont. I tested the crash by booting from both the Ubuntu 8.04 LTS (hardy) and Ubuntu 8.10 (intrepid) CD. 

Results:

- Ubuntu 8.04.1 LTS (hardy): no authentication required to add RSS subscriptions on CUPS
- Ubuntu 8.10 (intrepid): authentication *is* required to add RSS subscriptions on CUPS

tbh, I have no idea why this is the case.

btw, for those who are too lazy to upload the PoC to a web server, you can test it directly from: http://snipurl.com/5vp46

please let me know if your CUPS daemon crashes: http://localhost:631/ . It should work if you are on Hardy

@pdp: since it also worked for you, I'm assuming you're on hardy?

$ lsb_release -c
Codename:	hardy</description>
		<content:encoded><![CDATA[<p>OK, I did further investigation on why some people need authentication to add RSS feeds and others dont. I tested the crash by booting from both the Ubuntu 8.04 LTS (hardy) and Ubuntu 8.10 (intrepid) CD. </p>
<p>Results:</p>
<p>- Ubuntu 8.04.1 LTS (hardy): no authentication required to add RSS subscriptions on CUPS<br />
- Ubuntu 8.10 (intrepid): authentication *is* required to add RSS subscriptions on CUPS</p>
<p>tbh, I have no idea why this is the case.</p>
<p>btw, for those who are too lazy to upload the PoC to a web server, you can test it directly from: <a href="http://snipurl.com/5vp46" rel="nofollow">http://snipurl.com/5vp46</a></p>
<p>please let me know if your CUPS daemon crashes: <a href="http://localhost:631/" rel="nofollow">http://localhost:631/</a> . It should work if you are on Hardy</p>
<p>@pdp: since it also worked for you, I&#8217;m assuming you&#8217;re on hardy?</p>
<p>$ lsb_release -c<br />
Codename:	hardy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Soh</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124374</link>
		<dc:creator>Jason Soh</dc:creator>
		<pubDate>Wed, 19 Nov 2008 08:09:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124374</guid>
		<description>Just realised that I didn't had curl installed in my ubuntu and network is down at my work place.. So I just hacked up a quick javascript to do the clearing of the RSS subscriptions for me..

for (var i=1;i&#60;=101;++i) {
document.write("");
}</description>
		<content:encoded><![CDATA[<p>Just realised that I didn&#8217;t had curl installed in my ubuntu and network is down at my work place.. So I just hacked up a quick javascript to do the clearing of the RSS subscriptions for me..</p>
<p>for (var i=1;i&lt;=101;++i) {<br />
document.write(&#8221;");<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kees Cook</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124372</link>
		<dc:creator>Kees Cook</dc:creator>
		<pubDate>Wed, 19 Nov 2008 05:01:09 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124372</guid>
		<description>This is certainly a bug, but just because something crashes doesn't mean it's a security issue.

As others have mentioned, creating an RSS feed requires authentication, so it's unlikely this is an issue is most environments. Also, even though the CUPS daemon is running as root, it is still confined with an AppArmor profile, isolating any otherwise-successful exploits.</description>
		<content:encoded><![CDATA[<p>This is certainly a bug, but just because something crashes doesn&#8217;t mean it&#8217;s a security issue.</p>
<p>As others have mentioned, creating an RSS feed requires authentication, so it&#8217;s unlikely this is an issue is most environments. Also, even though the CUPS daemon is running as root, it is still confined with an AppArmor profile, isolating any otherwise-successful exploits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous coward</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124370</link>
		<dc:creator>anonymous coward</dc:creator>
		<pubDate>Tue, 18 Nov 2008 16:15:25 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124370</guid>
		<description>i dont need authentication either. also running Ubuntu 8.04.1 as mentioned on the gnucitizen labs link and this post:

$ cat /etc/issue.net 
Ubuntu 8.04.1</description>
		<content:encoded><![CDATA[<p>i dont need authentication either. also running Ubuntu 8.04.1 as mentioned on the gnucitizen labs link and this post:</p>
<p>$ cat /etc/issue.net<br />
Ubuntu 8.04.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/pwning-ubuntu-via-cups/comment-page-1/#comment-124369</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Tue, 18 Nov 2008 15:29:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1765#comment-124369</guid>
		<description>funny! actually it works for me. but I guess someone needs to have a better look at why it happens, but I cannot be bothered right now :)</description>
		<content:encoded><![CDATA[<p>funny! actually it works for me. but I guess someone needs to have a better look at why it happens, but I cannot be bothered right now :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
