How I Hacked an AI That Was Supposed to Be Hacking For Me ⚔️
The AutoML Pro platform accepted user-supplied training configurations, including output paths and container settings, without validation. An attacker could start training jobs that wrote files outside the intended directory, ran privileged containers, and executed arbitrary scripts, potentially leading to host access and data theft.
medium.com
Published on medium.com
Free Link🎈
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the platform failed to validate or restrict user-supplied training configuration parameters, allowing path traversal, privileged container options, and arbitrary script execution.
Impact
An attacker could potentially escape the container, access the host system, steal sensitive data, and execute arbitrary code, though the text does not confirm actual exploitation beyond job start responses.
What the attacker needed
A valid API token; ability to send training requests
How it was found
- Send a training request with an output_path containing directory traversal sequences.
- Observe that the job starts successfully, indicating the path is not validated.
- Send a training request with container_config specifying privileged mode and other dangerous options.
- Observe that the job starts, showing container settings are passed directly to Docker.
- Send a training request with a training_script that includes commands to create a cron job or exfiltrate data.
- Observe that the job starts, indicating the script is executed with elevated privileges.
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 write-up has not been written yet. The Original tab links to the source.
This is about a machine learning platform where users can start training jobs. The platform let users control low-level settings like where files are saved and how the job's container is configured. Because it didn't check these settings, a user could make the job do harmful things, like write files anywhere or run commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.