Skip to content
RCE Disclosed report Beginner

Can upload files without authentication on AirFibre 3.2

An unauthenticated file upload endpoint on the AirFibre 3.2 device allows an attacker to write files to the tmp/upload directory. This could be used to fill disk space and cause a denial of service, and may be combined with other vulnerabilities such as local file inclusion.

simongurney Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 4 months

A POST submission such as below will upload a file to the tmp/upload directory without requiring authentication. I have been unable to redirect the upload to another directory so cannot utilize for RCE however an attacker is able to use this to fill the disk space on the device which could cause a DoS.

This could be combined with another vulnerability such as an LFI.

POST http://1[ip]/login.cgi HTTP/1.1 Proxy-Connection: keep-alive Content-Length: 5179 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryRfhSBNfoYzLOvXnc Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-US,en;q=0.8 Host: 1[ip]

------WebKitFormBoundaryRfhSBNfoYzLOvXnc Content-Disposition: form-data; name="file"; filename="test6.txt" Content-Type: text/plain

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

------WebKitFormBoundaryRfhSBNfoYzLOvXnc--

The original report as published on HackerOne, by simongurney. 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 login.cgi endpoint processes multipart file uploads without checking authentication or restricting the upload directory.

Impact

An attacker could fill the device's disk space, causing a denial of service, and the upload may be combined with another vulnerability such as LFI; the author could not achieve RCE through the upload alone.

What the attacker needed

Network access to the device's web interface

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 report shows that a device's web interface lets anyone upload files without logging in first. The uploaded files go into a temporary folder, and while the author could not turn that into running malicious code, filling up the disk could stop the device working properly. This is called a denial of service because it makes the service unavailable.

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 simongurney

View all

2 more disclosed reports, 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.