User impersonation is possible with incoming webhooks
The incoming webhook service allowed a user to set an arbitrary username and image, so an attacker could impersonate another user and send messages that appeared to come from them. Other users could not tell the difference unless they examined the user or bot details.
- Disclosed after 30 days
Using the incoming webhook service it is possible to send messages to the team from an arbitrary username. A malicious user could modify the image of the webhook service to match an existing user and then send a message with the username of an existing user. Other users would not be able to tell the difference between messages from the real user and a spoofed message unless they actually examined the user/bot.
Example request:
POST /services/hooks/incoming-webhook?token=G98rIOYar6DPwDINWFcBnEXT HTTP/1.1 Host: mailinator.slack.com Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Content-Length: 87 Connection: keep-alive
payload={"channel": "#general", "username": "TARGET", "text": "I'm a spoofed message!"}
The incoming webhook should not accept username as a parameter, this should be static and stored server-side. At very least a server-side check should verify that the username parameter does not match an existing username.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The incoming webhook accepted a username parameter from the request instead of using a fixed, server-side identity.
Impact
A malicious user could impersonate an existing user in team messages, potentially misleading other users.
What the attacker needed
Access to an incoming webhook token
How it was found
- Send a request to the incoming webhook endpoint with a token.
- Include a payload that sets the channel, a target username, and message text.
- The message is posted to the channel appearing to come from the chosen username.
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 report has not been written yet. The Original tab links to the source.
A webhook is a way for one service to send messages into a chat automatically. This report found that the sender could choose any display name and picture, so they could pretend to be someone else in the team. People reading the chat would think the message came from the real person unless they checked carefully.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.