How I Stole an AI’s Diary and Found All Its Secrets
The ML API returned overly detailed error messages that disclosed training data format, model names, and internal model details. An attacker could use this information to enumerate models, infer training data membership, and potentially extract proprietary model information.
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
Impact
The exposed information could allow an attacker to understand the model architecture, training data, and potentially reconstruct sensitive training data, leading to privacy breaches and loss of competitive advantage.
What the attacker needed
Valid API token; access to the ML API
The fix
The company sanitized error messages, removed debug endpoints, implemented access controls, added differential privacy, and trained staff.
How it was found
- Send a malformed request to the prediction endpoint to trigger an error.
- Observe the error message revealing training data format and preprocessing steps.
- Send a request with an invalid model ID to enumerate available models.
- Access model information endpoints to retrieve metadata about each model.
- Use debug endpoints to obtain training samples and feature importance.
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.
When a program fails, it sometimes shows an error message. If that message includes internal details like file names or data formats, it can help an attacker learn how the system works. Here, the API's errors revealed the names of secret models and how training data is structured.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.