Re: [Nagios-devel] [BUG] Missing new line in cmd.cgi [3.0.5] -

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] [BUG] Missing new line in cmd.cgi [3.0.5] -

Post by Guest »

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
=20
Hendrik B=E4cker schrieb:
> @Andreas: Do you see any security risk when putting an "\n" to the
> end of cmd in "cmd_submitf()"? Seems to me as the easiest way.
>
Hey,

this might help even in a secure manner:

- --- cmd.c 2008-11-06 15:11:33.000000000 +0100
+++ cmd.c.patched 2008-11-06 15:05:44.000000000 +0100
@@ -2250,6 +2250,7 @@

/* write the command to file */
fputs(cmd,fp);
+ fputs("\n",fp);

/* flush buffer */
fflush(fp);

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
=20
iD8DBQFJEvt/lI0PwfxLQjkRAhuiAJ4zQSEsvXJDcOcIu9iNv1H6T39+HQCfYC+C
kOkbZ+rIsMm4DiBoBfuKcfY=3D
=3D6f5q
-----END PGP SIGNATURE-----






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked