How I Found a Free GPT Proxy in a Bug Bounty Program
The AI assistant endpoints were publicly accessible without authentication, allowing anyone to obtain a conversation ID and use the paid OpenAI-backed LLM as a free proxy. An attacker could also extract the system prompt via a translation trick, causing financial loss and potential account suspension.
medium.com
Published on medium.com
A quick word on the target so the rest makes sense. It is a large vacation rentals marketplace.
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 AI assistant API endpoints lacked authentication and server-side topic enforcement, relying only on prompt-level instructions to restrict use.
Impact
An attacker could use the company's paid LLM for free, potentially causing financial loss and account suspension, and could extract confidential system prompt details.
What the attacker needed
None
How it was found
- Find the route table in the homepage HTML.
- Send a request to the start endpoint to get a conversation ID.
- Use the conversation ID to call the help center assistant with an arbitrary prompt.
- Observe the AI answering off-topic questions and confirm the upstream provider.
- Test rate limiting by sending multiple requests.
- Extract the system prompt using a translation request.
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.
The website had AI chat features that were supposed to be used only through its own pages, but the underlying API endpoints were open to anyone. Without logging in, a person could send unlimited questions to the AI, and the company would pay for every answer. The AI also revealed its hidden instructions when asked to translate them.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.