Skip to content
RCE Disclosed report Advanced CVE-2020-8168CVE-2020-8170

RCE in AirOS 6.2.0 Devices with CSRF bypass

Certain end-points in AirOS 6.2.0 and prior are vulnerable to command injection because an input string can bypass the filter and still contain commands, leading to remote code execution. These flaws can be paired with XSS and CSRF end-points to modify configuration, upload arbitrary firmware, and exfiltrate files and tokens.

murmus Follow with saphrya

Originally disclosed on HackerOne

High 8.8 View original
  • Triaged in 13 days
  • Fixed in 7 months
  • Paid in 13 days
  • Disclosed after 9 months

Summary by the program

There are certain end-points containing functionalities that are vulnerable to command injection. It is possible to craft an input string that passes the filter check but still contains commands, resulting in remote code execution. These vulnerabilities can be also can be also paired with other end points vulnerable with XSS and CSRF, allowing attacker to perform different actions, including modify configuration, upload arbitrary firmware, exfiltrate files and tokens. These vulnerabilities were found on AirMax AirMax AirOS v6.2.0 and prior versions for TI, XW and XM boards.

The fix for these vulnerabilities were included in the new version of AirMax AirOS firmware v6.3.0 for TI, XW and XM boards. For more details please visit: https://community.ui.com/releases/airMAX-M-v6-3-0/c8d5dec9-4030-4d7e-b23f-6a5b35ed3d83

https://www.ui.com/download/airmax-m

The original report as published on HackerOne, by murmus. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the input filter does not properly sanitise command separators or encoding, allowing injected commands to pass through.

Impact

An attacker could execute arbitrary commands, modify configuration, upload firmware, and exfiltrate files and tokens, especially when chained with XSS and CSRF.

What the attacker needed

Access to vulnerable end-points; ability to bypass filter; possibly CSRF/XSS for chaining

The fix

The vulnerabilities were fixed in AirOS firmware v6.3.0.

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.

Command injection is when user input is run as a system command. Here the filter could be bypassed, so an attacker could run commands on the device.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by murmus

View all

1 more disclosed report, best first.

More from Ubiquiti Inc.

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.