Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158958 - www-servers/yaws: insecure https webroot and local DoS
Summary: www-servers/yaws: insecure https webroot and local DoS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Security
URL:
Whiteboard: ~3 [masked]
Keywords:
: 159602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-23 12:33 UTC by Executioner
Modified: 2008-10-01 11:12 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
yaws-1.68.ebuild (yaws-1.68.ebuild,1.10 KB, text/plain)
2007-03-03 15:19 UTC, Christopher Covington
no flags Details
yaws.conf_gentoo (yaws.conf_gentoo,2.80 KB, text/plain)
2007-03-05 20:28 UTC, Christopher Covington
no flags Details
patch to yaws-1.68.ebuild to fix configuration (yaws-1.68.ebuild.patch,1.07 KB, patch)
2007-03-05 21:06 UTC, Christopher Covington
no flags Details | Diff
patch to yaws.conf_gentoo to fix configuration (yaws.conf_gentoo.patch,644 bytes, patch)
2007-03-05 21:14 UTC, Christopher Covington
no flags Details | Diff
yaws-1.73.ebuild (yaws-1.73.ebuild,1.21 KB, text/plain)
2007-11-10 13:57 UTC, Maxim Treskin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Executioner 2006-12-23 12:33:13 UTC
Https is started by default with a webroot of /tmp.  It's trivial to read any file on the system that the daemon's user has access too (default root).  Ex: any user could ln -s /etc/shadow /tmp/shadow, then open a browser to https://<ip> and view the system shadow file.
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-12-26 12:11:55 UTC
mkennedy please advise.
Comment 2 Executioner 2006-12-31 23:03:05 UTC
I dropped mkennedy an email.
Comment 3 Executioner 2007-01-14 18:56:39 UTC
could probably knock this and #159602 out at the same time
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-02-04 14:04:09 UTC
mkennedy retired, suggest sending a call for maintainer to -dev ML. :)
Comment 5 Alexandre Buisse (RETIRED) gentoo-dev 2007-02-06 09:58:07 UTC
Same confusion here.
Comment 6 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-02-10 19:21:44 UTC
-dev mailed
Comment 7 Stefan Cornelius (RETIRED) gentoo-dev 2007-03-02 21:22:23 UTC
masked now. setting severity to enhancement. seems like this was never stable, so we dont need a mask-glsa. this should be completely removed $SOON.
Comment 8 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-03-03 13:45:05 UTC
*** Bug 159602 has been marked as a duplicate of this bug. ***
Comment 9 Christopher Covington 2007-03-03 15:16:45 UTC
I have a relatively stable, non-vulnerable version (1.68) in my overlay Erlay. The mask masks my version though and I can't seem to do anything about that with a overlay-level package.mask or package.unmask. [OT: Is this a flawed function of portage?] It would be awful nice of you guys if you could mark <=www-servers/yaws-1.64 masked, as klacke the developer of YAWS clarified in bug #159602, even though newer version don't exist in portage. Getting YAWS, and more importantly the mask, out of portage as soon as possible would also make me a very happy overlay maintainer :).
Comment 10 Christopher Covington 2007-03-03 15:19:18 UTC
Created attachment 111935 [details]
yaws-1.68.ebuild

A non-vulnerable version.
Comment 11 Christopher Covington 2007-03-03 17:33:22 UTC
Disregard the pleas in comment #9. I've been pointed out a way to unmask packages from overlay (-www-servers/yaws) and then mask just the vulnerable versions. It's all good. Sorry to bother.
Comment 12 Stefan Cornelius (RETIRED) gentoo-dev 2007-03-04 12:40:09 UTC
Hi Christopher,
thank you very much for providing the ebuild, but I found a few issues:

a) if the hostname of your machine is "localhost", a wrong /etc/yaws.conf file will be generated (then you have two or three [the error msg says "to" btw] servers with "localhost" and yaws wont start)

b) the generated config still has "/tmp" set as docroot, which is the reason why I think that this is not fixed yet.

I think that this can be fixed in no time by someone with in-depth knowledge of this package, but i clearly lack this knowledge - so please provide another ebuild or wait until i have more time to check this out. And after all, the ebuild could be just fine and it would be me who is causing the trouble?
Comment 13 Christopher Covington 2007-03-05 20:28:10 UTC
Created attachment 112210 [details]
yaws.conf_gentoo

I've edited the configuration file to remove the issues mentioned in comment #9 and provide information about the privileged port thing. It can be included in ${FILESDIR} and be used in the stead of the config file that the package is distributed with.
Comment 14 Christopher Covington 2007-03-05 21:06:51 UTC
Created attachment 112211 [details, diff]
patch to yaws-1.68.ebuild to fix configuration
Comment 15 Christopher Covington 2007-03-05 21:14:55 UTC
Created attachment 112214 [details, diff]
patch to yaws.conf_gentoo to fix configuration

Start and stop now work correctly with the example configuration but there are issues with the rest of the init commands (debug, query, reload) don't. They are on my todo list but I don't have any more time today.
Comment 16 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-03-15 22:02:15 UTC
I could mail -dev again for a new maintainer, but i think it would be vain.

Time has come to take a decision. DerCorny or security or treecleaners please comment.
Comment 17 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-03-16 07:49:14 UTC
Someone might be willing to proxy maintain it now that we have an ebuild contributor?
Comment 18 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2007-09-08 11:07:13 UTC
i'd be willing to proxy maintain this.

christopher covington: interested in becoming the maintainer of this package?
Comment 19 Maxim Treskin 2007-11-10 13:57:50 UTC
Created attachment 135643 [details]
yaws-1.73.ebuild

ebuild for version 1.73
Comment 20 Samuli Suominen (RETIRED) gentoo-dev 2008-05-15 13:03:58 UTC
Another half year gone by.. yaws is now removed from portage by treecleaners.
Comment 21 Robert Buchholz (RETIRED) gentoo-dev 2008-05-15 13:40:08 UTC
Thanks, we can close this bug then.
Comment 22 Alexander Simonov 2008-10-01 11:12:13 UTC
Make ebuild for new version(1.77).
http://github.com/simonoff/gentoo_erlang/tree/master/www-servers/yaws/yaws-1.77.ebuild