Resource Consumption DOS on Edgemax v1.10.6
Discovered by grampae on Ubnt

This issue took 3 Days and 17 hours to triage and 266 Days and 20 hours to resolve once triaged.

Resource consumption Denial of service.

1: The request below shows that when you feed the cookie variable a payload of 250 characters or more, the web management portal will produce an error page showing full path disclosure and more as shown in screenshots error1.png and error2.png.

GET / HTTP/1.1 Host: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Cookie: Connection: close Upgrade-Insecure-Requests: 1 Cache-Control: max-age=0

2: When providing a valid length payload of 249 characters or less it will be stored as a *.cache filename in the /var/run/beaker/container_file/ directory,this can easily be turned in to a denial of service by filling up the space of the device with unique requests. The web portal will display either a 500 error as shown in DOS1.png or a python error screen as shown in DOS2.1.png and DOS2.2.png. Typically the web portal will stop functioning after the /run mount has reached 50% by sending requests using iterations of 1-15681 as a variable, however any length of payload can be used up to 249 characters. This can be recovered from by deleting all files within the /var/run/beaker/container_file/ directory.

Although once the /run mount can not accept any more files /var/log will start to fill up with complaints about not being able to write to /var/run/beaker/container_file/, then after /var/log fills up the device will stop responding all together until it has been power cycled.

3: I have created a video showing you how it is accomplished, I stopped the video at only 7% resources consumed on the /run mount as the video would be pretty long if we waited until the edgerouter went offline. I am hoping this is enough for you to be able to reproduce this. I am thinking that this could be fairly bad if made in to a python script along with google dorks and automation. Or even a python script that someone has to only enter in an IP address and it will take the router offline in about 5 minutes or so until the router owner unplugs and plugs it back in.


Any resources served by the edgemax device will be unavailable until the physical device has it's power cycled, then it should function as normal. However it would be easy to just perform the attack again after it has been brought back online.