Skip to content
Access control Write-up Beginner

Out in the Open: CVE-2020–28899 Leading to RCE on Zyxel ‘4G Router’ Boxes — An Accidental N-Day Research

The Zyxel 4G router's web interface allowed an unauthenticated attacker to change the administrative password by manipulating the login page's HTML in the browser. After logging in with the new password, the attacker could enable Telnet and obtain an admin shell, leading to remote code execution.

hacker_might Follow

Published on medium.com

Sometimes you go hunting for a zero-day and end up tripping over an N-day that the Internet simply forgot to patch.

hacker_might, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the web interface relied on client-side hiding of the password-change form instead of enforcing authentication on the server side.

Impact

An attacker could gain unauthorized administrative access and remote code execution on exposed Zyxel 4G routers, potentially compromising connected systems or adding devices to botnets.

What the attacker needed

Network access to the router's web interface; a web browser with developer tools

The fix

The vulnerability was patched in 2021, and Zyxel issued a security advisory; affected models are end-of-life and should be replaced.

How it was found

  1. Open the router's login page in a browser and open developer tools.
  2. Locate the div element with id login_change_password.
  3. Remove the class and style attributes from that div.
  4. The change password pop-up appears without requiring the old password.
  5. Enter a new password and confirm the change.
  6. Log in with the new password, enable Telnet in settings, and connect via Telnet to get an admin shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The router's login page had a hidden 'change password' box that was only hidden with styling, not actually protected. By removing the styling in the browser, anyone could make that box appear and set a new admin password without knowing the old one. Once logged in, the attacker could turn on a remote terminal service and take full control of the device.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by hacker_might

View all

18 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.