Closed CCyb3rN1nj4 closed 1 month ago
./install/bin/tcprewrite --dlt=enet --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66 -i ./poc2 -o /dev/null
Fatal Error: Unable to open input pcap file: unknown file format
The URL is directed to poc1 (https://github.com/GGb0ndQAQ/POC/blob/main/tcpreplay/tcprewrite/poc1), not poc2 (https://github.com/GGb0ndQAQ/POC/blob/main/tcpreplay/tcprewrite/poc2).
A possible fix is to check config
before checking config->subctx
.
./install/bin/tcprewrite --dlt=enet --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66 -i ./poc2 -o /dev/null
Fatal Error: Unable to open input pcap file: unknown file format
I update the correct poc:https://github.com/GGb0ndQAQ/POC/blob/main/tcpreplay/tcprewrite/poc_dlt_jnpr_ether_cleanup
Sorry, I made a mistake with the poc. I apologize for wasting your time.
Thanks for fixing this for me. Fixed in PR #851
Describe the bug
tcprewrite
SEGV plugins/dlt_jnpr_ether/jnpr_ether.c:167 in functiondlt_jnpr_ether_cleanup
.To Reproduce
Steps to reproduce the behavior:
1.Get the Tcpreplay source code and compile it.
2.Run Command:
POC:https://github.com/GGb0ndQAQ/POC/blob/main/tcpreplay/tcprewrite/poc2
gdbinfo
Environment
OS: Ubuntu
20.04.5 LTS
Compiler:
gcc version 9.4.0
Tcpreplay Version: master commit
43693c4a92dda227a5134ae5e71a7247ae345323
IMPACT
Potentially causing DoS or Arbitrary Read