Skip to content
Account takeover Write-up Intermediate

Phishing the anti-phishers: Exploiting anti-phishing tools for internal access

Anti-phishing email gateways automatically open links in reported emails, including email verification links. By signing up to a SaaS service with a company's public phishing-report address, the verification link was auto-clicked, letting the researchers verify the address and join internal workspaces.

Rojan Rijal Follow

Published on ophionsecurity.com

Written By Rojan Rijal

Rojan Rijal (@uraniumhacker), Tanner Emek (@itscachemoney), on ophionsecurity.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

Context

Anti-phishing tools are widely deployed at enterprises to stop malicious email reaching inboxes. They come in two broad shapes. Automated email gateways sit as proxies between the mail service and the receiving mailbox: the MX records for a large corporation often point at something like mx-CUSTOMER_ID.gslb.pphosted.com rather than directly at Office 365, GSuite or an internal SMTP service, and the gateway scans incoming mail before forwarding it to the right mailbox based on the From header. Reporting services are ad-hoc: an organisation publishes a mailbox such as [redacted], users (customers, employees or both) forward suspicious mail to it, and a product such as Palo Alto Networks Cortex XOAR scans the message to decide whether it is malicious. Products named in the post as examples of this class include ProofPoint, Barracuda Networks and Cortex XOAR.

Both shapes share one behaviour: they scan for malicious links and attachments. When a gateway or reporting service sees a message, it "blows up" every URL and hyperlink in it, following the links to analyse whether they lead to a phishing login page, a malware link, a malicious JS file and so on. That unfurling is the feature the researchers abused. The post notes earlier public work on the same scanning behaviour leaking sensitive URLs through misconfigured URLScan; here the goal was broader than disclosed URLs, namely abusing SaaS services.

Most SaaS services are built for enterprise teams and offer a team feature where users of a given domain can register and join the organisation. Examples given are Slack, Atlassian, Quip and Loom. With domain capture enabled, a user who has verified ownership of an email address in the organisation's domain can access all workspaces and teams in that organisation.

Email verification is the other half of the chain. It is used at signup, password reset, email changes and sometimes profile changes. The researchers' observation is that many services do not require the user to re-authenticate before verifying an email address.

Setup

The preconditions are:

  1. A target organisation that either exposes a phishing reporting mailbox to users or runs an email security gateway that scans all incoming mail.
  2. That service unfurls links in the messages it scans.
  3. A SaaS service used by the organisation whose email verification can be completed without authentication, and which supports domain capture or domain-based joining.

The work was done by Rojan Rijal (@uraniumhacker) and Tanner (@itscachemoney) and published on 7 August 2023.

Finding it

The starting point is the gap between two individually reasonable behaviours. First, most services do not require the user to re-authenticate before verifying an email address: whoever opens the link verifies the address. Second, anti-phishing scanners open every link in a message they process, including verification links sent by SaaS services. Put together, a scanner can be made to verify an account on the attacker's behalf.

The researchers describe the typical verification flow they found across services. At signup:

  1. Go to signup.
  2. Signup with an email address and password.
  3. The service sends an email verification link.
  4. Click on the email verification email. Email gets verified.

In the last phase, most services do not require the user to re-authenticate before verifying the email address. The same pattern appears when changing the address on an existing account:

  1. Change the email address on the profile page.
  2. The service sends a verification link to the new email to confirm the change.
  3. Click on the email verification link and confirm the email change without logging in.

Combined with domain capture, a verified address in the target's domain is enough to reach internal workspaces. The attack flow the post lays out is:

  1. Identify if a service has an exposed phishing reporting email (for users) or if the organisation is using an email security gateway.
  2. Check if either of the used services blows up and analyses email content and hyperlinks.
  3. Identify the SaaS service used by the company.
  4. Go to the SaaS service and check the email verification process. If no authentication is needed to verify email addresses for new signup, create a new account with an email address (either the exposed phishing reporting service or a randomised email that the email security gateway will scan).
  5. Wait a few minutes for the email security service to scan the email verification link.
  6. Go back to the signed up account and identify all joinable workspaces.
  7. Join the workspace and get access to internal sensitive product.

Exploitation

Step 1: Atlassian's unauthenticated verification

Early in the research the team found that Atlassian's signup flow allowed unauthenticated email verification. Signup took an email and password combination, and the verification link could be opened by anyone, including the gateways being targeted. Once the address was verified, Atlassian's API disclosed all joinable JIRA and Confluence cloud instances.

The screenshot shows Atlassian's joinable-sites API endpoint listing joinable JIRA and Confluence pages.

Step 2: Signing up with the target's phishing mailbox

Testing an organisation, the researchers found a public phishing@ address used by customers and users to forward potentially malicious mail. They signed up to Atlassian using that address. The phishing scanning system then auto-clicked the verification link, verifying the account. They attempted to join one instance and list its registration requirements; that instance had an allowlist permitting the company domain to join the JIRA instance.

The image shows the welcome page of a JIRA instance in Atlassian cloud after the email was verified by the email analysis tool.

Step 3: Joining and reading internal tickets

Going through the site registration process confirmed they could join. Once registered, they had access to all JIRA tickets for the organisation, including security reports the organisation had received on bug bounty platforms.

Step 4: Netflix

Netflix was one of the organisations tested. Its help portal listed a phishing reporting email that users could publicly forward mail to.

Netflix used multiple SaaS services, including Atlassian. The researchers created an Atlassian account with a [redacted] address. Atlassian sent a verification email to that address; because the inbox used an analysis service, the application auto-clicked the GET-based verification URL, which required no authentication. That produced a valid Atlassian account with a verified @netflix.com address. As in the earlier example, they could then access internal Atlassian sites that allowed any netflix.com address to join.

Step 5: Amazon SES and wildcard addresses

A second direction does not need internal SaaS access at all: the gateway itself can be turned into a way to send phishing from trusted-looking resources, using Amazon Simple Email Service (SES). SES lets an organisation automate sending email from any verified identity, a domain or an email address, and many organisations use it for automated mail. It is a good target when a gateway scans every message regardless of whether the mailbox exists. The post's example: a gateway could scan mail addressed to [redacted] even if that address does not exist in Ophion Security's mailbox.

With a non-sandboxed SES account, adding a new email address triggers the verification process.

The gateway parses the message and unfurls the URLs in it, including the verification link sent by AWS. Once unfurled, the address is marked verified in SES and can be used to send realistic-looking email from it.

Beyond sending trusted mail to any mailbox, this also allows sending to the organisation's internal Google groups, which in turn allows spraying targeted phishing links such as Okta logins at the organisation. Tanner's separate post on exploiting internal mailing lists covers that step.

Root cause

The design mistake is split across two systems. On the SaaS side, verification completes the action for whoever opens the link, with no re-authentication required, so possession of the link is the only proof required. On the email security side, the scanner treats every URL in every message as something to fetch, including single-use security tokens, and does so for addresses that may not even exist. Neither behaviour is a bug on its own; the chain is what turns them into account takeover of internal workspaces. The post notes the vulnerability is hard to fix, and that in some cases email security providers declined to fix it because of how it is exploited, asking organisations to add security measures in their SaaS services instead. SaaS services have also started adding authentication requirements to prevent exploitation.

Impact

Where the chain works, an attacker obtains a verified account in the target's domain on a SaaS service with domain capture, joins internal workspaces and reads internal data. In the Atlassian case that meant all JIRA tickets for the organisation, including bug bounty security reports. The SES variant lets an attacker send mail from a verified address in the target's domain to arbitrary mailboxes and to internal Google groups, which is a platform for targeted phishing such as fake Okta logins. The outcome depends on the gateway unfurling links, the SaaS service allowing unauthenticated verification, and the organisation's joining rules; the JIRA instance in the example used a domain allowlist.

Fix

The post describes two fixes. Netflix temporarily turned off link following, and introduced the researchers to the vendor supporting the [redacted] inbox. After discussion with the vendor and Netflix, the researchers also reported the unauthenticated verification to Atlassian. Atlassian accepted it and changed the signup flow to require email verification before setting the password, so an attacker now needs the verification link to access the account and add a password, which makes the issue hard to exploit. The post calls this move of account setup into the verification step a good example of a fix.

On the gateway side, the post recommends allowlisting specific domains or URL patterns so they are not unfurled, including sensitive URLs matching tokens for email verification and password reset. On the SaaS side, the post says services can remove themselves from the exploit chain by requiring user authentication or additional steps before verification.

Variants to test

  1. Other SaaS services with domain capture. Run the seven-step flow against Slack, Quip, Loom or any service that lets a verified domain address join the organisation. A positive result is a verified account and a list of joinable workspaces.
  2. Email-change flows. Instead of signup, change the address on an existing account to the target's phishing mailbox or a wildcard address. A positive result is the change confirmed without you logging in again.
  3. Password reset links. Check whether reset links are GET-based and single-use-token based, and whether the gateway unfurls them. A positive result is a reset link consumed by the scanner, which may itself be reportable.
  4. Wildcard mailbox scanning. Send to a non-existent address in the target's domain and see whether the gateway still processes the message. A positive result is a verification email being unfurled for an address that does not exist.
  5. SES identity verification. On a non-sandboxed SES account, add an address in the target's domain and wait. A positive result is the identity becoming verified without you opening the link, after which you can send from it.
  6. Internal mailing lists. Once an address is verified, try sending to internal Google groups. A positive result is delivery to the group, which enables spraying targeted links at its members.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A company's email system usually has a guard in front of it. That guard opens every link inside every email it inspects, so it can check whether the link leads to a fake login page or a virus. The guard may do this even for emails sent to an address that does not really exist.

Separately, many online work tools (the kind companies use for chat, documents and bug tracking) let anyone with an email address at the company's own domain join the company's private workspace. To prove you own the address, the tool sends you a link by email. Clicking the link proves it.

Put those two reasonable behaviours together and something odd happens. An attacker signs up to the work tool using the company's public "report phishing here" address. The tool emails a confirmation link to that address. The company's email guard opens the link to check it, and by opening it, confirms the account. The attacker now has a working account with a verified company email address, and can walk into the company's internal workspaces.

The researchers who found this also found a second trick: the same link-opening behaviour can be used to verify an email address in Amazon's bulk email service, which then lets an attacker send convincing email that appears to come from the company's own domain.

This article walks through the whole thing from scratch. It assumes you can use a browser and nothing else.

The pieces, explained from zero

What an email gateway is

When you send an email to someone at a large company, it does not usually go straight to that person's mailbox. The company's domain name has a public record, called an MX record, that says "deliver mail for this company to this server". For many big organisations that server is not Microsoft 365 or Google Workspace directly. It is a filtering service in between.

The post gives the example of an MX record pointing at something like mx-CUSTOMER_ID.gslb.pphosted.com. That is a ProofPoint server. Mail arrives there first, gets inspected, and is then passed on to the right mailbox. In the ProofPoint example, the gateway forwards the mail to the right mailbox based on the From header, which is the line in an email that says who it is from.

Think of it like a building's post room. All post arrives at the post room, gets opened and checked, and is then delivered to the right desk.

What a phishing reporting service is

Some companies do not filter everything automatically. Instead they publish an address such as [redacted] and ask people (customers, staff, or both) to forward suspicious emails to it. A product then scans whatever arrives and decides whether it is malicious. The post names Palo Alto Networks Cortex XOAR, ProofPoint and Barracuda Networks as examples of anti-phishing products.

Think of this one as a suggestion box for suspicious post. Anyone can drop something in, and a security team inspects it.

The behaviour both share: unfurling links

Both kinds of product do one thing in common. When they receive a message, they take every link in it and open it, to see where it goes. The post calls this "blowing up" the links. The purpose is to spot a fake login page, a download of malicious software, or a malicious JavaScript file before a real person clicks it.

This is the feature the researchers abused. Opening a link is not a neutral act. If the link is a one-time confirmation link, opening it does something.

What a SaaS service is

SaaS stands for Software as a Service. It means software you use through a browser, run by another company, rather than installed on your own machine. The post gives Slack, Atlassian, Quip and Loom as examples. Atlassian is the company behind JIRA (a tool for tracking tasks and bugs) and Confluence (a tool for shared documents).

What domain capture is

Most of these tools are built for teams, not individuals. They offer a feature where anyone with an email address at a particular domain, say @company.com, can register and join the company's existing workspace. This saves everyone the trouble of being invited one by one.

The post calls this "domain capture". Once you have proved you own an address in the company's domain, you can reach all the workspaces and teams belonging to that organisation.

Think of it as a building where your staff badge opens every door, not just the front one. The badge is only issued after your email address is confirmed.

What email verification is

When you sign up for a service, it wants to know the address you typed really belongs to you. So it sends an email containing a link. Click the link and the address is confirmed. The same mechanism is used when you reset a password, when you change your email address, and sometimes when you change other profile details.

The researchers' key observation is about what happens at the moment you click. On many services, you do not have to be logged in. The link alone is enough. Whoever opens it confirms the address, whether or not they are the person who signed up.

What an API is

An API is the way one piece of software talks to another. When you use a website, your browser is quietly asking the site's servers for data and the servers answer. An API is the same conversation, but designed for programs rather than people. The post mentions Atlassian's API disclosing joinable sites: that means a program (or a browser tab pointed at the right address) can ask Atlassian "which JIRA and Confluence sites can this account join?" and get a list back.

The chain, step by step

The researchers describe a typical signup flow they found across many services:

  1. Go to signup.
  2. Signup with an email address and password.
  3. The service sends an email verification link.
  4. Click on the email verification email. Email gets verified.

At step 4, most services do not ask you to log in again before confirming. The link is the only proof needed.

The same pattern appears when you change the address on an existing account:

  1. Change the email address on the profile page.
  2. The service sends a verification link to the new email to confirm the change.
  3. Click on the email verification link and confirm the email change without logging in.

Now add the email gateway. The gateway opens the link. The link confirms the address. The address is now verified, and because of domain capture, a verified address in the company's domain is enough to reach internal workspaces.

The full attack flow the post lays out is:

  1. Identify if a service has an exposed phishing reporting email (for users) or if the organisation is using an email security gateway.
  2. Check if either of the used services blows up and analyses email content and hyperlinks.
  3. Identify the SaaS service used by the company.
  4. Go to the SaaS service and check the email verification process. If no authentication is needed to verify email addresses for new signup, create a new account with an email address (either the exposed phishing reporting service or a randomised email that the email security gateway will scan).
  5. Wait a few minutes for the email security service to scan the email verification link.
  6. Go back to the signed up account and identify all joinable workspaces.
  7. Join the workspace and get access to internal sensitive product.

Why each step matters:

  • Step 1 finds the door: either a public reporting address or a gateway that filters everything.
  • Step 2 checks that the door actually opens links. If the service only reads the text and never fetches the link, nothing happens.
  • Step 3 finds which work tool the company uses, because that is where the account will be created.
  • Step 4 is the trick itself: sign up using an address the company controls, so the confirmation email lands in the company's own scanner.
  • Step 5 is patience. The scanner runs on its own schedule.
  • Step 6 asks the tool what the newly verified account can reach.
  • Step 7 walks in.

Case study: Atlassian

Early in the research, the team found that Atlassian's signup flow allowed unauthenticated email verification. You could sign up with an email and password, and the confirmation link could be opened by anyone, including the email gateways they were targeting. Once the address was confirmed, Atlassian's API would list every JIRA and Confluence cloud site the account could join.

The screenshot shows Atlassian's joinable-sites API endpoint returning the list of JIRA and Confluence pages the account can join.

Testing one organisation, the researchers found a public phishing@ address that customers and users could forward suspicious mail to. They signed up to Atlassian using that address. The phishing scanner then opened the confirmation link on its own, which confirmed the account. They then tried to join one of the sites and checked what that site required to register. That particular site had an allowlist: only addresses at the company's own domain were allowed to join.

The image shows the welcome page of a JIRA site in Atlassian cloud, reached after the email analysis tool had confirmed the address.

Going through the site's registration process confirmed they could join. Once registered, they had access to all the organisation's JIRA tickets, including security reports the organisation had received on bug bounty platforms.

A bug bounty platform is a website where outside researchers report security problems to companies in exchange for a reward. Those reports are sensitive: they describe weaknesses in the company's systems. Reading them is a serious problem in itself.

Case study: Netflix

Netflix was one of the organisations tested. Its public help pages listed a phishing reporting address that anyone could forward mail to.

Netflix used several SaaS services, including Atlassian. The researchers created an Atlassian account using a [redacted] address. Atlassian sent a confirmation email to that address. Because that inbox was handled by an analysis service, the service opened the confirmation link automatically. The link was a GET-based verification URL that required no authentication. That produced a valid Atlassian account with a confirmed @netflix.com address. As in the earlier example, they could then reach internal Atlassian sites that allowed any netflix.com address to join.

They reported it to Netflix once they had confirmed access to internal sites. Netflix fixed it quickly by temporarily turning off link following. Netflix also introduced the researchers to the vendor that ran the [redacted] inbox. After talking with the vendor and Netflix, the researchers decided it was also worth reporting the unauthenticated verification problem to Atlassian. Atlassian accepted the report and changed the signup flow so that email verification is required before a password can be set. Now an attacker needs the confirmation link to get into the account and set a password, which makes the whole thing much harder to pull off.

Case study: Amazon SES and made-up addresses

The second direction does not need access to internal work tools at all. Instead, the email gateway itself is turned into a way to send convincing phishing email, using Amazon Simple Email Service, or SES.

SES is a service that lets an organisation send large amounts of automated email. Before it will send from an address or a domain, it has to be verified: Amazon sends a confirmation email and you click the link. Many organisations use SES for things like receipts and notifications.

This is a good target when a gateway scans every message, whether or not the mailbox exists. The post's example: a gateway could scan mail addressed to [redacted] even if that address does not exist in Ophion Security's mailbox. The gateway does not check whether the person exists. It just processes the message.

With a non-sandboxed SES account, adding a new email address triggers the verification process. "Non-sandboxed" means the account is out of Amazon's restricted trial mode and can send to anyone.

The gateway reads the message and opens the links inside it, including the confirmation link Amazon sent. Once that link is opened, the address is marked as verified in SES, and it can then be used to send realistic-looking email.

Beyond sending trusted-looking email to any mailbox, this also allows sending to the organisation's internal Google groups. A Google group is a shared email address that forwards to a list of people. Sending targeted messages to such a group lets an attacker spray phishing links, such as fake Okta login pages, at everyone in it. Okta is a service companies use to manage logins, so a fake Okta page is a convincing thing to send to staff.

Tanner wrote a separate post on using this to phish internal mailing lists, linked at the end of the original article.

Why it works, and why it is hard to fix

The design mistake is split across two systems, and neither is wrong on its own.

On the work-tool side, the confirmation link completes the action for whoever opens it, and most services do not require the user to log in again before confirming. Possession of the link is the only proof required.

On the email-security side, the scanner treats links in messages as something to fetch, including one-time security links, and gateways that scan all mail may do so even for addresses that do not exist.

Neither behaviour is a bug by itself. The chain is what turns them into access to internal workspaces.

The post notes that this is hard to fix, and that in some cases email security providers declined to fix it because of how it is exploited, asking organisations to add extra security measures in their own SaaS services instead. SaaS services have also started adding authentication requirements to prevent it.

What the impact is

Where the chain works, an attacker gets a confirmed account in the target's domain on a work tool that has domain capture, joins internal workspaces and reads internal data. In the Atlassian case that meant all JIRA tickets for the organisation, including bug bounty security reports.

The SES variant lets an attacker send mail from a confirmed address in the target's domain to any mailbox and to internal Google groups, which is a platform for targeted phishing such as fake Okta logins.

The outcome depends on whether the gateway opens links, whether the work tool allows confirmation without logging in, and the organisation's joining rules. The JIRA site in the example, for instance, used a domain allowlist.

The fixes

Two fixes are described.

Netflix temporarily turned off link following, and introduced the researchers to the vendor behind the [redacted] inbox. After discussion with the vendor and Netflix, the researchers also reported the unauthenticated verification to Atlassian. Atlassian accepted it and changed the signup flow so that email verification is required before setting a password. An attacker now needs the confirmation link to get into the account and add a password, which makes the issue hard to exploit. The post calls moving account setup into the verification step a good example of a fix.

On the gateway side, the post notes that gateways can allowlist specific domains or URL patterns so they are not opened, including sensitive links that match tokens for email verification and password reset. A token here means the long random string inside the link that makes it unique and unguessable.

On the work-tool side, the post says services can remove themselves from the exploit chain by requiring the user to log in, or to complete extra steps, before a confirmation takes effect.

Other places to look

  1. Other work tools with domain capture. Run the seven-step flow against Slack, Quip, Loom or any service that lets a confirmed domain address join the organisation. A positive result is a confirmed account and a list of joinable workspaces.
  2. Email-change flows. Instead of signing up, change the address on an existing account to the target's phishing mailbox or a made-up address. A positive result is the change confirmed without you logging in again.
  3. Password reset links. Check whether reset links are simple web addresses with one-time tokens, and whether the gateway opens them. A positive result is a reset link used up by the scanner, which may itself be worth reporting.
  4. Made-up mailbox scanning. Send to an address that does not exist in the target's domain and see whether the gateway still processes the message. A positive result is a confirmation email being opened for an address that does not exist.
  5. SES identity verification. On a non-sandboxed SES account, add an address in the target's domain and wait. A positive result is the address becoming confirmed without you opening the link, after which you can send from it.
  6. Internal mailing lists. Once an address is confirmed, try sending to internal Google groups. A positive result is delivery to the group, which allows spraying targeted links at its members.

Glossary

  • API: the way one piece of software asks another for data or actions, designed for programs rather than people.
  • Allowlist: a list of things that are explicitly permitted, such as only addresses at a certain domain being allowed to join.
  • Anti-phishing tool: software that inspects incoming email to spot and block malicious messages before they reach a person's inbox.
  • Atlassian: the company behind JIRA and Confluence, work tools used by teams.
  • Bug bounty platform: a website where outside researchers report security problems to companies, often for a reward.
  • Confluence: Atlassian's tool for shared documents and wikis.
  • Cortex XOAR: Palo Alto Networks' phishing reporting product, named in the post as an example of a reporting service.
  • Domain: the part of an email address or web address after the @ or the www, such as company.com.
  • Domain capture: a feature where a confirmed email address at a company's domain gives access to all of that organisation's workspaces.
  • Email gateway: a filtering server that sits between the internet and a company's mailboxes and inspects mail before delivery.
  • Email verification: the process of proving an email address belongs to you, usually by clicking a link sent to it.
  • From header: the line in an email that says who it is from.
  • GET request: a simple web request that asks for a page or address, with no form data attached. A confirmation link that works by being opened is a GET request.
  • Google group: a shared email address that forwards messages to a list of people.
  • JIRA: Atlassian's tool for tracking tasks, bugs and tickets.
  • MX record: a public record for a domain that says which server receives its email.
  • Non-sandboxed: an Amazon SES account that is out of the restricted trial mode and can send email to anyone.
  • Okta: a service companies use to manage logins; a fake Okta page is a common phishing target.
  • Phishing: tricking someone into handing over credentials or other sensitive information by pretending to be a trusted party.
  • Phishing reporting mailbox: a public email address, such as [redacted], that people forward suspicious messages to.
  • ProofPoint, Barracuda Networks: email security products named in the post as examples of gateways.
  • SaaS: Software as a Service, software you use through a browser that is run by another company.
  • SES: Amazon Simple Email Service, a service for sending large amounts of automated email from confirmed addresses or domains.
  • SMTP: the standard protocol for sending email between servers.
  • Token: a long random string inside a link that makes it unique and unguessable, often usable only once.
  • Unfurling: opening every link in an email to see where it leads, done by email security tools to check for malicious pages.
  • URLScan: a public service for scanning websites, mentioned in the post as an earlier example of scanning behaviour leaking sensitive links.
  • Workspace: a shared area inside a work tool where a team's channels, documents or tickets live.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.