Finding vulnerabilities in offensive security tooling
Where
Main Stage
Disobey 2023
Duration
42 min
Walks through local privilege escalation flaws found in example scripts of a popular Windows pentest toolkit.
Summary
Jonas Vestberg examines whether the offensive tools that penetration testers rely on can be trusted, using three example scripts from the Impacket collection as case studies. He frames the scenario as an attacker with a low-privilege foothold on a Windows domain environment, where a tester's own tooling becomes part of the attack surface. The examples were reported to their maintainers beforehand, and no CVEs were assigned.
The first case is a secrets-dumping script that saves registry hives to a predictable location in the system directory, which standard users can reach. A local attacker who watches for those files can copy the boot key and password material before the script removes them. The same logic had been copied into other tools. A second case is a remote-execution script that writes its command output and batch file to a fixed path in the temp folder. A race condition lets a standard user take ownership of that file and swap in a payload that runs as SYSTEM. The third case is a PsExec-style tool whose named pipe grants access to everyone, so an interrupted session can leave a service that any authenticated user can reach.
The talk closes with practical guidance: review and audit tools before use, build them yourself where possible, test them in a lab while watching the artifacts they leave, agree on rules of engagement with clients, and weigh the risk of relying on vendors for offensive software.
Related talks
Talks·38 min
Jarno Niemelä
Shows how misconfigured file permissions in Windows software let a low-privileged user escalate to admin rights.
Talks·33 min
William Robinet
Shows how crafted certificate fields inject terminal control codes into OpenSSL output, misleading administrators who review them.
Talks·53 min
Sami Laiho
Walks through zero trust principles, from MFA and RDP hardening to removing admin rights and network segmentation.


