Asus RT-AX82U get_IFTTTTtoken.cgi authentication bypass vulnerability
The router's IFTTT token endpoint uses a short token with only 255 possible values and a timestamp based on uptime, so after a reboot the token remains valid indefinitely. An attacker can brute-force the token and obtain an administrative token, gaining full control of the device.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the getIFTTTTtoken.cgi functionality of Asus RT-AX82U 3.0.0.4.38649674-ge182230. A specially-crafted HTTP request can lead to full administrative access to the device.
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 short token is generated from a small random range (mod 255) and its expiry is based on uptime, which resets on reboot, so the token never truly expires.
Impact
An attacker could obtain an administrative token and gain full control of the router, but exploitation requires the attacker to send a series of HTTP requests and the token must be used within the valid timeframe or after a reboot.
What the attacker needed
WAN access enabled for HTTPS server; IFTTT or Alexa access code generated; Attacker can send HTTP requests to the router
How it was found
- Enable WAN access for the HTTPS server and generate an access code for IFTTT or Alexa.
- Send an HTTP GET request to get_IFTTTtoken.cgi with a User-Agent starting with 'asusrouter' and containing 'IFTTT' or 'Alexa', and a shortToken parameter.
- Brute-force the shortToken value (255 possibilities) within the two-minute window or after a reboot.
- Receive the ifttt_token in the response, which grants full administrative access.
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 lets you control it remotely via services like IFTTT. To link your account, it uses a short numeric code that is supposed to expire after two minutes. But the code is very simple (only 255 possibilities) and the expiry timer resets when the router reboots, so an attacker can guess the code and get full admin access.
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.