Skip to content
Access control Write-up Advanced

Threats intelligence

The NETGEAR DGN-2200v1 router's HTTPd approved pages for unauthenticated access by searching the whole URL for substrings such as '.gif', so appending a matching query string let anyone reach management pages that should require a login. Separately, credentials were compared with a non-constant-time string function, allowing a timing side-channel to recover the username and password, and the configuration backup was encrypted with a hard-coded key.

microsoft.com

Published on microsoft.com

The continuous improvement of security solutions has forced attackers to explore alternative ways to compromise systems. The rising number of firmware attacks and ransomware attacks via VPN devices and other internet-facing systems are examples of attacks initiated outside and below the operating system layer.

Microsoft Threat Intelligence, on microsoft.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

Impact

An attacker could reach protected management pages and recover the router's saved username and password, giving full control of the device and a foothold into the network; the text says the critical issues were fixed.

What the attacker needed

Network access to the router's management port; router runs vulnerable DGN-2200v1 firmware

The fix

The critical issues were fixed by NETGEAR, and the researchers recommended comparing credentials with a constant-time XOR-based memory comparison.

How it was found

  1. Obtain the firmware from the vendor website and unpack it to reach the filesystem and the HTTPd binary.
  2. Statically analyse HTTPd and run it under QEMU to see how pages are approved without authentication.
  3. Append a query string containing an approved substring to a protected page address to reach it without logging in.
  4. Measure reply times for candidate first characters to find the one that takes longest, then extend the guess character by character.
  5. Use the bypass to download the configuration backup file.
  6. Reverse-engineer the backup routine to learn the constant key and decrypt the stored credentials.

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 router has a small web server for its admin pages. The code decided whether a page was public by looking for text like '.gif' anywhere in the address, so adding that text to a protected page's address skipped the login check. The login check also stopped comparing at the first wrong character, and the tiny difference in reply time let an attacker guess the password one character at a time.

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.