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

Mage AI

Mage AI can expose an unauthenticated web UI with a built-in terminal. In the observed path, the terminal gave command execution as www-data.

Project:

https://github.com/mage-ai/mage-ai

Discovery

Useful indicators:

|_http-title: Apache2 Ubuntu Default Page: It works
6789/tcp open  http  Tornado httpd 6.3.3
|_http-title: Mage
|_http-server-header: TornadoServer/6.3.3

WhatWeb may show:

http://TARGET:6789 [200 OK] HTML5, HTTPServer[TornadoServer/6.3.3], Script[application/json], Title[Mage]

Add the discovered virtual hosts if the app references them:

TARGET mage.ai docs.mage.ai

Useful paths:

http://mage.ai:6789/settings/workspace/preferences
http://mage.ai:6789/terminal

The workspace preferences page showed:

v0.9.75

Terminal to www-data

Use the built-in terminal to stage and execute a reverse shell:

Start a listener and run the script:

Successful shell context:

Last updated