For the complete documentation index, see llms.txt. This page is also available as Markdown.

FuguHub

FuguHub 8.4 on Barracuda Embedded Web Server can expose an uninitialized setup wizard. After setting the administrator account, the authenticated customization page can execute Lua Server Pages, yielding command execution as root.

Discovery

Nmap indicators:

8082/tcp open  http       Barracuda Embedded Web Server
| http-methods:
|_  Potentially risky methods: PROPFIND PATCH PUT COPY DELETE MOVE MKCOL PROPPATCH LOCK UNLOCK
| http-webdav-scan:
|   Server Type: BarracudaServer.com (Posix)
|   Allowed Methods: OPTIONS, GET, HEAD, PROPFIND, PATCH, POST, PUT, COPY, DELETE, MOVE, MKCOL, PROPFIND, PROPPATCH, LOCK, UNLOCK
|_http-title: Home

Browse to:

http://TARGET:8082

If the instance is uninitialized, it redirects to:

http://TARGET:8082/Config-Wizard/wizard/SetAdmin.lsp

Set the administrator account new username and password

Successful setup:

You have successfully set the administrator account.

The setup page disclosed the user database path:

Version and WFS

Follow: https://github.com/SanjinDedic/FuguHub-8.4-Authenticated-RCE-CVE-2024-27697

The about page identified the product:

FuguHub was powered by:

Authenticated Lua Server Pages RCE

The customization page allows editing page content:

Replace a harmless dynamic block such as <?lsp=bd.version?> with a Lua reverse shell:

Start a listener:

Trigger the payload by browsing to:

Successful shell context:

This behaves like a command shell over the socket. Use direct commands such as:

Last updated