RCE over ham radio – Reverse shell via WinAPRS memory corruption bug
WinAPRS contains a stack-based buffer overflow when processing AX.25 packets, allowing an attacker to execute arbitrary code. The exploit achieves remote code execution over ham radio, spawning a reverse shell on Windows XP and, with extra steps, on Windows 10.
coalfire.com
Published on coalfire.com
Coalfire Cybersecurity Team
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a stack-based buffer overflow in WinAPRS when parsing AX.25 packets, where a long message overwrites the saved return address and structured exception handler.
Impact
An attacker can achieve remote code execution on a system running WinAPRS, gaining a shell over ham radio; on Windows 10 the exploit is less reliable and requires heap grooming, succeeding about one third of the time.
What the attacker needed
WinAPRS running with a KISS TNC; Attacker can send AX.25 packets over radio; Victim uses WinAPRS
The fix
The bugs are unlikely to ever be fixed because the author no longer has a development environment; users should switch to a more modern APRS application.
How it was found
- Craft an AX.25 packet containing shellcode and overwrite the SEH and NSEH with controlled addresses.
- Send the first packet to the victim running WinAPRS.
- Wait for WinAPRS to crash and close.
- Send the third stage shellcode packet.
- Receive a reverse shell over the ham radio link.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
WinAPRS is a program for ham radio operators that processes messages received over the air. A bug in how it handles long messages lets an attacker send a special message that takes control of the program and runs the attacker's commands. This means someone with a radio transmitter can break into a computer running WinAPRS, even if that computer is not on the internet.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.