Broken Access: Posting to Google private groups through any user in the group
Google Groups accepted posts sent by email to a group address and trusted the sender address shown in the message, so anyone who knew a member's email could forge a post that appeared to come from that member. The attacker could also trigger an unsubscribe for the victim, and a group admin could ban the innocent member.
Published on medium.com
#### Elber Andre
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.
Context
Google Groups lets people create and take part in online forums and email-based groups. A group has a name, an email address and a description, plus permissions that decide who may post. In the example used throughout this write-up the group is called testpocgoogle, its address is [redacted], and posting is restricted with the standard setting that only members of the group can post something.
Every post made to a group is also delivered by email to the users who follow it, and that notification carries a short block of Google help text. One line of that help text is the key to everything below:
To post to this group, send email to [redacted]
So the group accepts posts by email, and the same help text shows that a user can stop notifications by sending mail to [redacted].
The researcher reported the behaviour to Google and received this reply:
Thanks for reporting! We think the issue might not be severe enough for us to track it as a security bug.
The write-up was published on 27 April 2019, and the author notes that the bug had not been fixed at that point.
Setup
- A Google Group created for the test, with the name, address and description above and the standard member-only posting permission.
- A member account in the group,
[redacted](shown as "elbtests acc"), which is allowed to post and comment. - The attacker does not have access to that member account, its password or its second factor. The only thing the attacker knows is that the account belongs to the group, and its email address.
- A spoofing service, emkei.cz, for the first attempt.
- An SMTP server of the author's own for the second attempt, configured with SPF and DKIM using a 2048-bit key. The author notes that a 1024-bit key usually landed in spam in some tests.
Finding it
The observation is simple. Posting to a group is not only a web action: it can be done by sending an email to the group address. If the group trusts the sender address in that email, then anyone who knows the address of a member can send mail that appears to come from that member. If the group trusts the sender address, a forged message can appear to come from a member.
Exploitation
Step 1: confirm the email posting path
The notification email that every follower receives contains the help text quoted above, which states both the posting address and the unsubscribe address. That gives the attacker the target address and a second action to abuse later.
Step 2: spoof the member's address
Email spoofing is the creation of email messages with a forged sender address. The author used the site emkei.cz to build a message with the member's address as the sender.

With the correct information filled in and the request submitted, the group admin receives the post marked as if it had been made by the real member of the group. With those settings, however, the message was landing in spam.
Step 3: get past the spam filter
To make the post land directly in the group, the author used an SMTP server of their own with extra settings that the spoofing site did not offer, namely SPF and DKIM with a 2048-bit key. The video at the top of the post shows this working.

With that setup the email was not marked as spam and was posted directly in the group as the member's user. The author stresses that only the email address was needed: no passwords and no 2FA bypass.
The email containing the content of the post was then sent to the addresses of the users who follow the group. In the video, a notification appears in the Gmail tab after the form has been submitted.
Root cause
Google Groups accepts posts by email and decides whether the sender is allowed to post from the sender address in the message. The report does not describe how Google validates the sender; the behaviour is consistent with the group trusting the From address. The spam filter is the only obstacle in the way, and the author got past it by sending through an SMTP server with SPF and DKIM configured, rather than by defeating any authorisation logic. The report does not describe how Google validates the sender address.
Impact
Under the conditions described, an attacker who knows the email address of any member of a group can post to that group as the member, without the member's password or second factor. The post is delivered to every follower of the group by email.
The same trick allows the attacker to unsubscribe the member from the group. The forged post also appears in the victim's own activity history: if the member signs in and looks at "Recent Activities", a post they did not make is there. If an admin sees the message in the spam tab or in the group and clicks ban user, the victim is banned without having done anything. Google hides users' email addresses, but the author notes they can be found in Gmail when feedback from posts arrives.
Fix
What the behaviour calls for is that a post arriving by email should only be attributed to a member when the message can be tied to that member's authenticated account, rather than to a sender address the sender chooses.
Variants to test
- Send a post to a member-only group from an address that is not a member and see whether it is rejected. A positive result is the message being accepted as if it came from a member.
- Repeat with a forged sender address matching a real member, using a properly configured sending domain with SPF and DKIM. A positive result is the post appearing in the group and in followers' inboxes without a spam marking.
- Send to the
+unsubscribeaddress with a forged sender. A positive result is the member being removed from the group without their action. - Check the member's "Recent Activities" after a forged post. A positive result is the forged post listed as the member's own activity.
What happened, in plain words
Google Groups is a service that lets people set up online discussion forums. You can think of a group as a shared noticeboard: people join it, and members post messages that everyone else in the group can read. A group also has its own email address, and every message posted to the group is copied out by email to the people who follow it, so they get the discussion in their inbox as well as on the website.
The researcher found that a group can be posted to simply by sending an email to the group's address. The group appears to accept the message based on the sender address in the email. The problem is that the "From" line is just text that the sender writes. Anyone can put someone else's address there. This trick is called email spoofing, and it is like writing a friend's name on the back of an envelope: the postman delivers it, and the person receiving it sees your friend's name, not yours.
So if an attacker knows the email address of a member, they can send an email that appears to come from that member; with a properly configured SMTP server the group accepted it as a real post. No password and no second factor are needed. The researcher reported this to Google and was told the issue was not severe enough to be tracked as a security bug. The write-up was published on 27 April 2019, and the author notes the behaviour had not been fixed at that point.
The pieces you need to understand first
Before walking through the steps, here are the ideas the report relies on, explained from scratch.
- Google Groups: a product for running email-based discussion groups. Each group has a name, an email address and a description, plus settings that decide who is allowed to post. In this write-up the group is called
testpocgoogle, its address is[redacted], and the setting is the standard one where only members of the group can post. - Email address: the
[redacted]form. The part before the@is the mailbox name and the part after is the domain, the organisation that runs the mail service. Here the domain isgooglegroups.com. - The "From" line: every email carries a header, a small block of hidden information at the top, and one of those headers says who the message is from. Mail software normally fills this in for you, but nothing stops a sender from writing a different address there. That is the whole basis of spoofing.
- Email spoofing: creating an email message with a forged sender address, so it looks like it came from someone else.
- SMTP server: the computer program that actually sends email. When you press send in your mail app, your app hands the message to an SMTP server, which passes it along towards the recipient. If you run your own SMTP server, you control exactly what it says about your message.
- SPF and DKIM: two checks that receiving mail servers use to decide whether a message really came from the domain it claims. SPF is a list, published by a domain, of which servers are allowed to send mail for it. DKIM is a cryptographic signature added to a message so the receiver can verify it was not altered and came from a domain that holds the matching key. A key is a long string of characters used to sign and verify; a 2048-bit key is longer and stronger than a 1024-bit one.
- Spam filter: the automatic system that moves suspicious email into a junk folder instead of the inbox. It looks at many signals, including whether SPF and DKIM checks pass.
- 2FA (two-factor authentication): a second proof of identity beyond a password, such as a code from a phone. The point of this attack is that it never needs the password or the 2FA code at all.
- Broken authorisation: the general name for a bug where a system lets someone do something they should not be allowed to do, because it checks the wrong thing or does not check at all. Here the group appears to accept a post based on the sender address in the email.
Setting up the test
The researcher prepared the following:
- A Google Group created for the test, with the name, address and description above and the standard member-only posting permission.
- A member account in the group,
[redacted], shown as "elbtests acc", which is allowed to post and comment. - The attacker does not have access to that member account, its password or its second factor. The only thing the attacker knows is that the account belongs to the group, and its email address.
- A spoofing service, emkei.cz, for the first attempt.
- An SMTP server of the author's own for the second attempt, configured with SPF and DKIM using a 2048-bit key. The author notes that a 1024-bit key usually landed in spam in some tests.
When you create a group you fill in a few fields, and the report lists them:
- Group Name (for example
testpocgoogle) - Email of the group (for example
[redacted]) - Description of the group
and then the basic permissions, for example the standard setting where only members of the group can post something.

The clue in the notification email
When something is posted in the group, every follower receives an email containing the content of the post. That email also contains a short block of help text from Google Groups.
Among that help text is this line:
To post to this group, send email to [redacted]
Read it literally: the group is telling you that you do not need the website to post. You can just send an email to the group's address. The same help text also shows that a user can stop receiving notifications by sending mail to [redacted]. That second address matters later, because it is another action that can be triggered by email.
This is the observation the whole report rests on. Posting to a group is not only a web action. It is also an email action, and email has a sender line that the sender writes.
The unauthorised post
Take the member account "elbtests acc", [redacted]. It is in the group, so it is allowed to make posts and comments. The attacker knows this account is in the group but does not have access to it.
Knowing that posts can be made by email, the attacker tries email spoofing: send a message to the group address with the member's address in the From line. If the group trusts that line, the message will be treated as a post by the member.
Step 1: spoof the member's address
Email spoofing is the creation of email messages with a forged sender address. To perform this attack the author used the site emkei.cz, a web page where you type in the sender address, the recipient address and the message body, and it sends the email for you.

The idea is simple: you are not logging in as the member, you are only writing the member's address in the From field.
With the correct information filled in and the request submitted, the group admin receives the post marked as if it had been made by the real member of the group. With those settings, however, the message was landing in spam.
So the first attempt did not deliver the post properly: it was landing in spam. The spam filter was the obstacle: the message looked suspicious enough that it was moved aside instead of being accepted.
Step 2: get past the spam filter
To make the post land directly in the group, the author used an SMTP server of their own with extra settings that the spoofing site did not offer, namely SPF and DKIM with a 2048-bit key. The author notes that a 1024-bit key usually went to spam in some tests.
Why does this work? SPF and DKIM are the two checks a receiving mail server uses to decide whether a message really comes from the domain it claims. The author used their own SMTP server with SPF and DKIM configured, which the spoofing site did not offer. When you run your own SMTP server and set up SPF and DKIM properly, the message passes those checks, so the spam filter has much less reason to hold it back. The author is not breaking any authorisation logic here; they are only making the message look legitimate to the mail infrastructure.

The video at the top of the post shows this working end to end.
With that setup the email was not marked as spam and was posted directly in the group as the member's user. The author stresses that only the email address was needed: no passwords and no 2FA bypass.
The email containing the content of the post was then sent to the addresses of the users who follow the group. In the video, a notification appears in the Gmail tab after the form has been submitted.
Why this happens
Google Groups accepts posts by email and decides whether the sender is allowed to post from the sender address in the message. The report does not describe any check that ties that address to the authenticated account, so a forged sender address is treated as the member. The spam filter is the only obstacle in the way, and the author got past it by sending through an SMTP server with SPF and DKIM configured, rather than by defeating any authorisation logic. The exact validation Google performs is not described in the report; the behaviour is consistent with the group trusting the From address.
In plain terms: the group asks "who does this email say it is from?" and believes the answer. It should instead ask "can this message be tied to the account that is really sending it?"
What an attacker can do with this
Under the conditions described, an attacker who knows the email address of any member of a group can post to that group as the member, without the member's password or second factor. The post is delivered to every follower of the group by email.
The same trick allows the attacker to unsubscribe the member from the group, by sending mail to the +unsubscribe address with the member's address in the From line. The forged post also appears in the victim's own activity history: if the member signs in and looks at "Recent Activities", a post they did not make is there. If an admin sees the message in the spam tab or in the group and clicks ban user, the victim is banned without having done anything. Google hides users' email addresses, but the author notes they can be found in Gmail when feedback from posts arrives.
Was it fixed?
The report does not say that any fix was applied; the author states the bug had not been fixed at the time of writing. What the behaviour calls for is that a post arriving by email should only be attributed to a member when the message can be tied to that member's authenticated account, rather than to a sender address the sender chooses.
Things to try yourself
- Send a post to a member-only group from an address that is not a member and see whether it is rejected. A positive result is the message being accepted or held for moderation as if it came from a member.
- Repeat with a forged sender address matching a real member, using a properly configured sending domain with SPF and DKIM. A positive result is the post appearing in the group and in followers' inboxes without a spam marking.
- Send to the
+unsubscribeaddress with a forged sender. A positive result is the member being removed from the group without their action. - Check the member's "Recent Activities" after a forged post. A positive result is the forged post listed as the member's own activity.
Glossary
- Google Groups: a Google product for creating and taking part in online forums and email-based discussion groups.
- Group: a shared discussion space with a name, an email address, a description and permissions that decide who may post.
- Permission: a setting that says who is allowed to do something, such as the standard setting where only members can post.
- Email address: the
name@domainform used to send mail to a mailbox. - Domain: the part of an email address after the
@, identifying the organisation that runs the mail service, heregooglegroups.com. - Header: the hidden block of information at the top of an email, including who it is from and who it is to.
- From line: the header that says who sent the message. It is written by the sender and can be forged.
- Email spoofing: creating an email message with a forged sender address so it appears to come from someone else.
- SMTP server: the program that sends email from one mail system to another.
- SPF: a record published by a domain listing which servers are allowed to send mail for it.
- DKIM: a cryptographic signature on an email that lets the receiver verify it came from the claimed domain and was not altered.
- Key (bit length): the long string of characters used to sign and verify; a 2048-bit key is longer and stronger than a 1024-bit one.
- Broken authorisation: a bug where a system lets someone do something they should not be allowed to do, because it checks the wrong thing or does not check at all.
- Authenticated account: the account a person has actually logged in as, proven by their password or second factor.
- Unsubscribe: the action of removing yourself from a group so you stop receiving its messages.
- Recent Activities: a page in a user's account listing things they have recently done, such as posts.