Skip to content
Info disclosure Advisory Advanced CVE-2022-38105

Asus RT-AX82U cfg_server cm_processREQ_NC information disclosure vulnerability

The router's configuration service accepts a master key of any length, but the AES encryption routine always reads 32 bytes from that key, causing an out-of-bounds read of heap memory. An attacker can send a crafted request and then use an oracle to leak heap data, including stack addresses.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An information disclosure vulnerability exists in the cmprocessREQNC opcode of Asus RT-AX82U 3.0.0.4.38649674-ge182230 router’s configuration service. A specially-crafted network packets can lead to a disclosure of sensitive information.

Lilith >_>, 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 code does not validate that the provided master key is exactly 32 bytes before passing it to AES-256 encryption, which always reads 32 bytes.

Impact

An attacker could leak heap memory contents, including thread stack addresses, which may aid in bypassing ASLR for further exploitation.

What the attacker needed

Network access to port 7788

How it was found

  1. Send a cm_processREQ_KU request to obtain the server's public RSA key.
  2. Craft a cm_processREQ_NC request with a master_key shorter than 32 bytes, encrypt it with the RSA key, and send it.
  3. Receive the encrypted response and use the known client_nonce to brute-force the unknown key bytes one by one.
  4. Repeat with different master_key lengths to leak heap memory contents.

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.

The router has a service that lets devices set up a mesh network. When a device sends a special message, the service uses a key from that message to encrypt its reply. The service does not check that the key is the right length, so it reads extra memory beyond the key and uses that memory as part of the encryption key. By carefully guessing bytes, an attacker can learn what that extra memory contains, which may include addresses that help with further attacks.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Lilith >_>

View all

148 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.