Exploit database

Vulnerability

CVE-2022-30526

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · Zyxel

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

A privilege escalation vulnerability was identified in the CLI command of Zyxel USG FLEX 100(W) firmware versions 4.50 through 5.30, USG FLEX 200 firmware versions 4.50 through 5.30, USG FLEX 500 firmware versions 4.50 through 5.30, USG FLEX 700 firmware versions 4.50 through 5.30, USG FLEX 50(W) firmware versions 4.16 through 5.30, USG20(W)-VPN firmware versions 4.16 through 5.30, ATP series firmware versions 4.32 through 5.30, VPN series firmware versions 4.30 through 5.30, USG/ZyWALL series firmware versions 4.09 through 4.72, which could allow a local attacker to execute some OS commands with root privileges in some directories on a vulnerable device.

CVE Program

Exploit source choices

2 sources
Zyxel Firewall SUID Binary Privilege Escalation
MSF-linux--local--zyxel_suid_cp_lpeMetasploitLinux,Unix / remotePreferred

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.

2022-06-14zyxel_suid_cp_lpe.rb
greek0x0/cve-2022-30526
GH-b9fd09579805371ba53a4d06c798028fGitHubUnofficial GitHub source

Metasploit exploit for CVE-2022-30526

2022-09-011 file · 1 stars