A PoC exploit was created to demonstrate the vulnerability. The exploit creates a malicious configuration file with elevated privileges and sets the path to the configuration file in the NSSM service configuration.
# Start the service nssm_command = 'nssm start service_name' os.system(nssm_command) nssm-2.24 privilege escalation
# NSSM configuration directory config_dir = 'C:\\Path\\To\\NSSM\\config' A PoC exploit was created to demonstrate the vulnerability
import os import sys