How a Simple Endpoint Earned Me a $7500 Bounty from Microsoft
An unauthenticated WordPress REST API endpoint on a Microsoft site returned a valid JWT Direct Line token for the Bot Framework when sent a minimal POST request. An attacker could use this token to interact with the chatbot service without authentication.
medium.com
Published on medium.com
While hunting on a Microsoft target, I visited the /wp-json/ path just to check for exposed WordPress REST API endpoints. This is something I always do when I see a WordPress site sometimes you find nothing, but sometimes things get interesting.
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 custom WordPress REST API endpoint lacked any authentication or authorisation check before issuing a Bot Framework Direct Line token.
Impact
An unauthenticated attacker could obtain production Bot Framework Direct Line tokens, potentially allowing interaction with the chatbot service, though the text does not detail further exploitation.
What the attacker needed
None
How it was found
- Visit the /wp-json/ path on the target WordPress site to list REST API endpoints.
- Manually check each custom endpoint and notice /wp-json/visualstudio/chatbot-token.
- Send a POST request without a body and receive a 411 Length Required response.
- Send a POST request with a minimal JSON body and correct content-type header.
- Observe that the server returns a valid JWT token.
- Decode the token and confirm it is a Direct Line token from Microsoft's Bot Framework.
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.
A website had a hidden web address that, when asked nicely, handed out a special digital pass (a token) without checking who was asking. That pass is meant to let a chatbot talk to Microsoft's servers, so anyone who got it could pretend to be the chatbot. The fix is to require a login before giving out such passes.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.