Unauthorized access to the slack channel via inside.gratipay.com/appendices/chat
The Slack invite endpoint accepted a crafted POST request with a modified parameter, causing an invite email to be sent to any arbitrary address even though the server returned an error. An attacker could force unlimited invites to arbitrary email addresses without any rate limit.
- Disclosed after 3 days
Summary
It is possible to force send invites for gratipay slack channel to arbitary email ids with no bruteforce limit. This is done by modifying the coc parameter to 1 in the POST data sent from https://inside.gratipay.com/appendices/chat
Description
Sending a post request with coc parameter set to 1 appears to be bypassing some validation that is being done in the server. Without the same, the server responds with Woot. Check your email to the requests.
Request
POST /invite HTTP/1.1
Host: gratipay-slackin.herokuapp.com
Content-Type: application/json
Content-Length: 36
{"coc":1,"email":"[email protected]"}
Response
HTTP/1.1 400 Bad Request
Server: Cowboy
Connection: keep-alive
X-Powered-By: Express
Content-Type: application/json; charset=utf-8
Content-Length: 93
Date: Sat, 06 May 2017 22:33:39 GMT
Via: 1.1 vegur
{"msg":"You have already been invited to Slack. Check for an email from [email protected]."}
Even though the response is a 400 Bad Request, an invite email is received from "Slack" <[email protected]> with the subject Paul Kuruvilla has invited you to join a Slack team.
Whatever the validation may be, this allows invites to be forced sent to arbitary email ids with no brute force limit.
Steps To Reproduce
- Send the post data with an arbitary email id
- An invite to the gratipay slack channel
gratipay.slack.comwill be received at that email account
Supporting References:
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
Likely the server trusted a client-supplied parameter to decide whether validation had already passed, so setting it skipped the check while the invite was still sent.
Impact
An attacker could force unlimited Slack invitations to arbitrary email addresses.
What the attacker needed
No account needed; ability to send HTTP requests
How it was found
- Send a POST request to the invite endpoint with an arbitrary email address and the modified parameter.
- An invitation email to the Slack team arrives at that address.
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 website had a form that sends Slack invitations by email. By changing one value in the request, a person could make the site send an invitation to any email address they chose, as many times as they wanted, even though the site showed an error message.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.