Skip to content
Access control Write-up Intermediate

How IoT can pave the way for data breaches: Understanding the Appweb Authorization Bypass

Appweb versions 4 to 7.0.2 had a logic flaw in its authentication check where a missing password field in digest or form-based authentication caused the password check to be skipped, allowing an attacker to log in with only a valid username. An attacker could then access the device's web interface without knowing the password.

lab.wallarm.com

Published on lab.wallarm.com

The everyday things you rely on may leave you vulnerable to attack. And it may not be the things themselves, but what is hiding inside.

Wallarm, on lab.wallarm.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 authentication code did not check the return value of the credential-parsing function, so when parsing failed and left the password as NULL, the login function was still called and its password verification was bypassed because the password was NULL.

Impact

An attacker could bypass authentication and gain access to the device's web interface, potentially allowing them to make changes, install spyware, or worse, without any authentication.

What the attacker needed

Device running vulnerable Appweb (4 to 7.0.2); knowledge of a valid username; network access to the device

The fix

The vulnerability was fixed in the newest version of EmbedThis Appweb by adding correct checks for what httpGetCredential returns and username and password NULL pointer checks inside the formParse function.

How it was found

  1. Set up a test environment with a Docker container running Debian Linux.
  2. Install dependencies and download Appweb version 7.0.2.
  3. Compile and install Appweb, then edit the configuration file to enable authentication with a user and password.
  4. Start Appweb and use a debugger to set breakpoints on authentication functions.
  5. Send a request with a valid username but no password (using digest or form authentication) to trigger the bypass.
  6. Observe that a session is created and authentication is bypassed.

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.

A small web server called Appweb runs inside many printers and routers to manage their settings. It had a bug in how it checked logins: if someone sent a login request with a correct username but left out the password entirely, the server skipped the password check and let them in. This meant anyone who knew a username could access the device without a password.

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.

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.