Skip to content
Info disclosure Write-up Beginner

Speechify voice cloning API key leakage

A server error on Speechify's voice cloning endpoint exposed an ElevenLabs API key in the response. An attacker could use this key to access ElevenLabs' voice cloning service without authorisation.

medium.com

Published on medium.com

Yesterday, I came across a video on Youtube of a guy using an AI Voice cloning service to impersonate and troll people on the popular GTA5 modification framework known as FiveM.

nekka, on medium.com

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 application returned a detailed error object from an HTTP client library, which included the request headers containing the API key.

Impact

The leaked key could be used to access ElevenLabs' voice cloning service, potentially incurring costs or enabling misuse; the key has since been invalidated.

What the attacker needed

Access to the Speechify voice cloning endpoint; ability to send a request with over 5500 characters

How it was found

  1. Send a request to the voice cloning endpoint with text longer than 5500 characters.
  2. Observe the 500 error response containing the API key.
  3. Use the key with the ElevenLabs Python library to clone a voice and generate audio.

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 website has a bug, it sometimes shows internal error details to the user. Here, an error message included a secret key that the site uses to talk to another service. That key let anyone use the other service for free, which could cost the site money or allow misuse.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.