Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 8 Dec 2008 17:19:52 +0300
From: Eygene Ryabinkin <>
Subject: Re: CVE Request (nagios)

Mon, Dec 08, 2008 at 03:57:46PM +0300, Eygene Ryabinkin wrote:
> Hmm, this seems to be unrelated to CVE-2008-5027, but it may be the
> upstream fix for CSRF: judging by the contents of
> the original patch from Tim Starling should introduce at least 'csrf' word
> into cgi/cmd.c.  And I am failing to find one in the latest version,
> So either it was fixed in the completely different way or it is the
> quick fix to prevent CSRFs for the eventhandler mangling commands.

Uhm, the fix for the CSRF was in the 3.0.5, but it was really simple
(and not very complete -- not every Nagios command was blocked ;):
----- cgi/cmd.c
static int cmd_submitf(int id, const char *fmt, ...)
	const char *command;
	int len, len2;
	va_list ap;

	command = extcmd_get_name(id);

	 * We disallow sending 'CHANGE' commands from the cgi's
	 * until we do proper session handling to prevent cross-site
	 * request forgery
	if (!command || (strlen(command) > 6 && !memcmp("CHANGE", command, 6)))
		return ERROR;
just completely closes the processing of these commands from the
Nagios side.  May be this was the fix for the case when the evil
contents from the command file were still floating around but the
upgraded Nagios won't process them because they could go from the
previous successful attack but are lying unprocessed?

> It is a bit strange that it was done after 3.0.5 (CSRF was documented in
> 3.0.5 release notes), but...  By the way, entry for CVE-2008-5028 speaks
> about 3.0.5 as about the vulnerable to the CSRF and it is inconsistent
> with the release notes at

So I feel the the CSRF was "somehow closed" in 3.0.5 and CVE entry may
need fixing.  The remains from this bug that could migrate from 3.0.5 to
3.0.6 (but not in the functional sense, only via the unprocessed command
file) were "fixed" in 3.0.6.

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.