Description
This module exploits CVE-2022-30526, a local privilege escalation vulnerability that allows a low privileged user (e.g. nobody) escalate to root. The issue stems from a suid binary that allows all users to copy files as root. This module overwrites the firewall's crontab to execute an attacker provided script, resulting in code execution as root.
In order to use this module, the attacker must first establish shell access. For example, by exploiting CVE-2022-30525.
Known affected Zyxel models are: USG FLEX (50, 50W, 100W, 200, 500, 700), ATP (100, 200, 500, 700, 800), VPN (50, 100, 300, 1000), USG20-VPN and USG20W-VPN.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/local/zyxel/suid_cp_lpemsf undefined(suid_cp_lpe) > show actions ...actions...msf undefined(suid_cp_lpe) > set ACTION < action-name >msf undefined(suid_cp_lpe) > show options ...show and set options...msf undefined(suid_cp_lpe) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub