Skip to content
Access control Advisory Beginner CVE-2023-32645

Yifan YF325 httpd debug credentials leftover debug code vulnerability

The router's authentication function contains hardcoded debug credentials that bypass normal credential checks. An attacker can send a network request with these credentials to gain admin access.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A leftover debug code vulnerability exists in the httpd debug credentials functionality of Yifan YF325 v1.020221108. A specially crafted network request can lead to authentication bypass.

Francesco Benvenuto, on Cisco Talos

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The authentication function includes a hardcoded debug username and password that are checked before the real credentials, allowing bypass.

Impact

An attacker can bypass authentication and gain admin access to the router, potentially compromising the device and network.

What the attacker needed

Network access to the router

The fix

The vendor released a patch on 2023-10-24.

How it was found

  1. Send a request to a protected page without credentials and observe a 401 Unauthorized response.
  2. Send the same request with an Authorization header containing the debug credentials and observe the page content returned.

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 report has not been written yet. The Original tab links to the source.

This router has a secret backdoor: a fixed username and password are built into the login check. Anyone who knows these can log in as admin without the real password. The problem is leftover debug code that was never removed.

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 Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.