{"uuid": "a26bdfd9-654c-45de-9cc6-c4fa87dc454a", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "name": "Unauthenticated RCE affecting 35 million ASUS routers", "description": "Ref: [https://mrbruh.com/asusrouter/](https://mrbruh.com/asusrouter/)\n\n\nUnauthenticated RCE affecting 35 million ASUS routers\n\nAs part of my ongoing security research into six or seven different router vendors (see motorola and tplink), I ended up taking a look into ASUS and their router firmware.\n\nI ended up choosing the ASUS \u201cRT-AX86U Pro\u201d as a starting point for this research. It\u2019s a popular WiFi 6 gaming router that released in 2022. It also has the ability to act as a mesh router.\n\nThe ASUS RT-AX86U Pro router\n\nMy very first router finding was a command injection vulnerability in my TPLink router. I decided to look for a similar issue in the ASUS firmware.\n\nThe first step was to open some of the binaries in a tool called IDA, and look at what cross references there were to the Linux \u201csystem\u201d syscall. However as it turned out, ASUS runs any Linux commands via a wrapper called \u201cdoSystem\u201d instead.\n\nIDA showing the doSystem wrapper in the ASUS httpd binary\n\nWhen I pulled up the cross-references to \u201cdoSystem\u201d in ASUS\u2019s httpd binary, I found that there were 109 different instances where it was being called.\n\nI only had to check 7 of these functions to find a vulnerable sink.\n\nList of functions in the httpd binary that call doSystem\n\nThis caller was from a function that handled updating the NTP server that the router used.\n\nIn short, it pulls the first 32 characters of \u201cntp_server0\u201d from storage (NVRAM) and then calls \u201cnslookup\u201d with the value as the argument being parsed in.\n\nFunction reading the ntp_server0 value from NVRAM The ntp_server0 value being passed to nslookup\n\nThe main issue is that you can use a metacharacter such as \u201c;\u201d to escape from the intended nslookup command and run a second command of your choosing as well.\n\nAn example payload is ;telnetd -l/bin/sh -p9999; which fits within 26 of the 31 usable characters (one byte is reserved for a null/terminator byte).\n\nThis evaluates to nslookup ;telnetd -l/bin/sh -p9999; &amp;&gt; /dev/null and results in three different commands attempting to be run.\n\nnslookup (doesn't do anything)\ntelnetd -l/bin/sh -p9999 (spawns a telnet shell)\n&amp;&gt; /dev/null (fails and does nothing)\n\nTo set this over the network, you can call the following endpoint. This endpoint requires an administrator authentication token to trigger.\n\nRequest used to set the router&rsquo;s NTP server\nAuthentication bypass\n\nThis naturally brings us to the next stage of exploitation. By requiring an admin login, this makes it more akin to a jailbreak than a real exploit. So I went searching for an authentication bypass.\n\nASUS has a mobile app that lets you control your router from your phone. It has over 5 million downloads on Android and has decent reviews.\n\nThe ASUS Router mobile app on the Google Play Store\n\nTo control your router via the mobile app, you need to first link the router via OAuth to your ASUS account. Once it has been linked, the mobile app calls /asusrouter_request_token.cgi with proof that you are signed into your ASUS account.\n\nIf the router confirms that the OAuth proof is valid and correlates with an authorised account, it saves the mobile app\u2019s unique device_id to NVRAM alongside a randomly generated shared secret.\n\nThis shared secret and a short lived administrator authentication token is shared with the end user (mobile app).\n\n{\"asusrouter_refresh_token\":\"%s\", \"asus_token\":\"%s\"}\n\nIf at a later date, the mobile app needs to refresh that admin authentication token after it has expired, the app calls /asusrouter_request_access_token.cgi.\n\nIt encrypts the current time and the MAC address of the router with the shared secret. This payload is sent to the router alongside its unique device_id.\n\n{\u201clabel_mac\u201d:\"%s\", \u201ctimestamp\u201d: %d}\n\nIf the payload decrypts, the MAC address is correct and the timestamp is recent, and it mints a new admin token for the mobile app to use.\n\nThe following screenshot is a pseudocode mockup of how this functionality works.\n\nPseudocode for the OAuth admin token refresh\n\nIt first initialises the shared secret to be a blank string, then if it can find the device_id in NVRAM it pulls the corresponding shared secret and sets the string to that value.\n\nIt then attempts to decrypt and validate the encrypted payload using the secret, if it succeeds then you are given an admin token.\n\nThe problem is that it does not early-exit if you provide a device_id that has not been registered.\n\nAn attacker can then encrypt the current time and router MAC address using a blank key, then send the router the payload alongside an invalid device_id.\n\nPseudocode showing the authentication bypass\n\nThis makes the full chain be the following:\n\n    Forge an access token using an invalid device id\n    Use the token to set a short command as the ntp_server\n    Wait for the NTP server to auto restart\n    You get a shell!\n\nThere is also an alternative path that I found to be more reliable:\n\n    Forge an access token using an invalid device id\n    Use the token to enable SSH access (over the LAN or WAN)\n    Use the token to add an SSH public key to be authorised\n    SSH into the router\n    You get a shell!\n\nI didn\u2019t realise this until I actually went out and bought a cheap ASUS router to test this, but one big caveat is that the exploit does not work if no one has completed the mobile app\u2019s pairing process.\n\nIf you avoided downloading the app for whatever reason, you can be proud because it just saved you from potentially getting hacked.\nAdditional findings\n\nWhile brainstorming possible attacker scenarios with Steve Burke (Gamers Nexus) I suggested that an attacker could use a guest network to gain a foothold onto the network.\n\nIt turned out though, that when Steve tried testing this scenario, ASUS applied device isolation to the guest network so the exploit couldn\u2019t talk to the router.\n\nAll was not in vain though, it turns out that when I took another look at the firmware for the router, the guest isolation iptables rule only applies to IPv4 and you could theoretically exploit this via IPv6.\nProof of Concepts\n\nThe alternative (SSH) path proof-of-concept can be found at: https://github.com/cybersecurity/ASUS-Router-RCE-PoC\n\n(Full disclosure, the PoC is entirely vibe coded)\nAffected devices\n\nIn our email exchanges, ASUS did not want to give me a list of affected models and would rather give me the affected firmware versions.\n\nWith this information in hand I performed a binary search and found that every router from 2018 onwards is likely affected by this vulnerability.\n\nTable of affected ASUS router models and firmware versions\n\nI then fed this information to Claude (so you know its probably wrong) and it estimated that ~35 million routers worldwide are affected by this vulnerability.\nReporting\n\nAs I expected, ASUS was somewhat troublesome to report vulnerabilities to. I first reported my findings in late June, and despite them providing Beta firmware 2 months into the 3 month disclosure period, they said they would not be able to publish the fix within the 90 day period.\n\nAs a result of this, they wanted an additional 30 day extension which I declined.\n\nRegarding the identified vulnerabilities, we anticipate that the necessary updates and fixes will be ready for release between the end of October and the middle of November.\n\nIn light of this timeline, and referencing the industry-standard 90 (+30) day disclosure period, we would like to request that the publication of any related articles or public disclosures be delayed accordingly.\n\nAfter declining their 30 day extension, I saw that only a short time later, they had pushed out a fix for this vulnerability for some of the affected router models (I didn\u2019t check all of them).\n\nGiven this, I am a little confused. If they managed to get the fix for the vulnerability shortly after asking for additional time, then why ask in the first place.\n\nASUS has not responded back to me via email since I declined their extension and have not told me if any CVEs have been assigned yet.\nDonations\n\nSo far, for the vulnerabilities I have personally reported to AMD, ASUS, Google, Motorola, MSI, Netgear, TP-Link (and more), I have been paid a total of $0 in bug bounties.\n  \nIf you found this article interesting or useful, you can buy me a coffee via my Ko-fi: https://ko-fi.com/mrbruhh\nTimeline (DD/MM/YYYY)\n\n    27/06/26 \u2013 Report submitted\n    01/07/26 \u2013 ASUS Acknowledges report\n    03/08/26 \u2013 Requested update\n    07/08/26 \u2013 3 of 4 vulns accepted. One is a dupe.\n    19/08/26 \u2013 ASUS provides Beta firmware\n    04/09/26 \u2013 Requested update\n    26/09/26 \u2013 90 day disclosure period ends\n    23/10/26 - CVE-2026-93489, CVE-2026-75779 and CVE-2026-75775 are assigned\n    15/11/26 \u2013 Vendor estimated fixed firmware release date", "creation_timestamp": "2026-11-02T14:15:25.392129+00:00", "timestamp": "2026-11-02T14:15:25.392129+00:00", "related_vulnerabilities": ["CVE-2026-93489", "CVE-2026-75775", "CVE-2026-75779"], "author": {"login": "adulau", "name": "Alexandre Dulaunoy", "uuid": "c933734a-9be8-4142-889e-26e95c752803"}}
